Acessibility #2576
-
Ahoy team, I would like to ask a question about accessibility. I wanted to share with you a feedback from an accessibility specialist gave us about our solution and understand how we can improve it together with Paste.
Considering that we apply the existing component (disable button) of Paste in our solution. Can we discuss and re-evaluate these applied colors and font sizes to the point of meeting accessibility criteria? I wanted to understand if there is someone I should talk to and work with on this solution or what would be the recommended next steps here. All the best, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi Carol, thanks so much for reaching out about this! Great to see that you're investing in accessibility. Re: the disabled button contrast, disabled UI controls do not need to meet the 4.5:1 contrast requirement for text, because they can't be interacted with. You can read more about it here. Here's the line outlining that the contrast requirement does not apply here:
With that said, we often recommend against using disabled UI elements whenever possible. Instead, it can often be a better experience to keep the button enabled and provide actionable error text if needed after the button is pressed. This can be more clear than a disabled button, where it might be difficult for the user to understand why the button is disabled. For the timestamp text, can you share what text color tokens and background color tokens are being used there? |
Beta Was this translation helpful? Give feedback.
-
Hi Katie, thanks for getting us back. After the considerations you mentioned, I prepared this [material].(https://docs.google.com/document/d/1sqejovHJKyZGDfa_zQD9RZvw7K9v9QZnxLbv3Mg1zi4/edit). Current: (4.16:1) Proposed to improvement: (13.22:1) Background color: E1E3EA Current: Proposed to improvement (13.32:1) Background color: F4F4F6
Reasons not to start with the button in the normal and error state. What are your thoughts on this proposal @katieporter? |
Beta Was this translation helpful? Give feedback.
-
Yeah. Definitely I agree a 100% percent on this suggestion.
Perfect, we will update the text colors 🫡 |
Beta Was this translation helpful? Give feedback.
Hi Katie, thanks for getting us back.
After the considerations you mentioned, I prepared this [material].(https://docs.google.com/document/d/1sqejovHJKyZGDfa_zQD9RZvw7K9v9QZnxLbv3Mg1zi4/edit).
Current: (4.16:1)
Background color: E1E3EA
Font color: 606B85
Proposed to improvement: (13.22:1)
Background color: E1E3EA
Font color: 121C2D
Current:
Background color: F4F4F6
Font color: 606B85
Proposed to improvement (13.32:1)
Background color: F4F4F6
Font color: 121C2D
Currently the button is disabled because the fields are not filled, although none of the fields are mandatory.
Proposed to improvement:
At…