-
Notifications
You must be signed in to change notification settings - Fork 6
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
The focus style for the element template chooser list view has a too low color contrast #7
Comments
This is a tricky issue, because if the hover state background is too dark, the text above also becomes less legible. Still, we could tweak it. The current state of the design includes an additional icon. This icon links to external documentation, while helping to mark the hover state for a11y purposes. @andreasgeier what do you think about making the hover state background color g-225-10-95 a bit darker? |
indeed a tricky problem. i've used the element template chooser only in the context of ECA on Drupal. there we dont have for example the link to external documentation. but taking a look at your screenshot it has a bit of modified styling compared to the screenshot from the description page i've linked in the initial page as well as the out of the box version of bpmn.io i've actively tested on. there the title and the description are both blackish in your linked exampled here you have a greyish description. that fails the and in regards of finding the appropriate focus color those two constraints have to be met for
but one question about your suggested color. is that in the hsl format? g-225-10-95 but i suppose when an element in the list gets into focus its |
@rpkoller For a little bit of background on different screen showcased (#7 (comment)): We'll ship some updates to our element template foundations as well as this library in the near future. We'll end up with something like #7 (comment); you'll be able to
Your input on A11y topics is really apprechiated, here and in other issues you've raised. We'll do our best to incorporate these hints as we move forward :). |
Moving to backlog for the time being. We'll revise a11y feedback we get in the near future. |
@nikku ah cool thanks for the headsup! that means the screenshot provided refers to a future state of the layout of the element chooser - its taken from the dev branch? out of curiosity is the same icon used and applied for each element or are there different images for every element or a group of elements? in case it is the same icon for each element then it might be a good idea to mark those icons up as decorative with and about the optional link that is an excellent idea and improvement in general. unable to check right now in an installation to label the optional link with an |
We're updating to modern popup menu foundations (#14). Any a11y improvements now contribute directly to the core |
Describe the Bug
If you take a look at the screenshot on the projects description page (same is reproducible when actually using it)
https://github.com/bpmn-io/element-template-chooser/blob/master/resources/screenshot.png you notice that the grey focus style for the template selected has a background color of
#EDEEED
while the background has #FEFFFE which leads to a color contrast ratio of1.2:1
but the goal should be>= 3:1
(WCAG21 SC 1.4.11). That way the focus isn't visible or makes it had for people with lower vision to determine which element among multiple elements has the keyboard focus (SC 2.4.7)Environment
The text was updated successfully, but these errors were encountered: