-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[A11Y] [UX] The disabled text color in table UIs is not accessible #4519
Comments
That's really an interesting issue! When I change the text color of I'm not an expert, so only guessing: With a simple color fix people with difficulties to see contrast differences would recognize the content of a disabled row (good) but they wouldn't see the difference between an enabled and a disabled row (bad). No idea if there are newer approaches to indicate 'disabled' things, maybe we can ask accessibility experts. |
It might be worth looking into how this problem was solved in Drupal 8, since they also included views. One thing I can think of would be to add the word In some places (like views), we could put all the disabled items at the bottom of the page, below a I'd also like to advocate for adopting a system-wide pattern that contrib can use in their own UIs, so that they don't have to set their own disabled colors. See backdrop-contrib/feeds#68 for reference. |
Just had a very little play with CSS and would something like this be of any use... /admin/structure/views/list /admin/structure/layouts Again, only had a quick play... and only looked at those two instances. |
Also, should the title have "[UX]" - User Experience? |
Could be a start! Can you also provide a screenshot? |
It looks like css-generated content isn't always accessable in Internet Explorer. If we are going to add text to indicate that something is disabled, it should be in the DOM (and not added via CSS) It looks like we have 4 possible solutions:
This won't work where the item order is important, but could be used everywhere else.
The only downside to this is that it may clutter the page with lots of repeated
Though the text becomes readable, it won't look very different from enabled items.
We could standardize on a background color for disabled rows (yellow? blue?) but by only using color to differentiate enabled and disabled items, we still face accessibility issues for those who are color deficient. I'm going to add the |
Description of the bug
There are several interfaces in backdrop core (especially in tables with even/odd striping) where we indicate that an item is disabled by changing the text color from black-on-gray when it's enabled to to gray-on-gray when it's not. When the text is gray-on-gray it cannot be read by all people. Below are a few examples of these interfaces.
Views UI
Layouts UI
Steps To Reproduce
To reproduce the behavior:
Click on the color circle representing the color
Check the contrast (it should be at least 4.5)
Actual behavior
Contrast too low
Expected behavior
Contrast at least 4.5
Possible solutions
Disabled
headingDisabled
somewhere into each disabled row#717171
The text was updated successfully, but these errors were encountered: