Skip to content
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

Attribution links only identified by colour #6742

Open
3 tasks done
minorOffense opened this issue Jul 30, 2019 · 1 comment
Open
3 tasks done

Attribution links only identified by colour #6742

minorOffense opened this issue Jul 30, 2019 · 1 comment
Labels
accessibility Anything related to ensuring no barriers exist that prevent interactions or information access needs decision

Comments

@minorOffense
Copy link

The maps have 'leaflet' link which is identified only by color.

Criteria 1.4.1
Compliance success level A

0f49f0d4-0e1d-11e7-8e12-1a83beefc03c

  • I've looked at the documentation to make sure the behavior is documented and expected
  • I'm sure this is a Leaflet code issue, not an issue with my own code nor with the framework I'm using (Cordova, Ionic, Angular, React…)
  • I've searched through the issues to make sure it's not yet reported

Steps to reproduce
Steps to reproduce the behavior:

  • View a map
  • Look at the link text in the bottom right
  • No visual indication that text is a link other than the colour difference

Expected behavior
When the link has focus or hover it should show an underline or some other visual indicator to pass WCAG compliance.
See https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-without-color.html

Current behavior
Only identified by a colour.
See https://www.w3.org/TR/2016/NOTE-WCAG20-TECHS-20161007/F73 for an example failure.

Environment

  • Leaflet version: all
  • Browser (with version): all
  • OS/Platform (with version): all
@johnd0e johnd0e added the accessibility Anything related to ensuring no barriers exist that prevent interactions or information access label Sep 17, 2020
@Malvoz
Copy link
Member

Malvoz commented Apr 1, 2021

See https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-without-color.html

The latest recommendation is https://www.w3.org/WAI/WCAG21/Understanding/use-of-color.html.

No visual indication that text is a link other than the colour difference

According to Technique G183 as long as the difference in lightness (contrast) is 3:1 or greater with the surrounding text they still pass SC 1.4.1 Use of Color. That contrast ratio is currently 2.56 (fails SC 1.4.3 Contrast (Minimum) and 1.4.6 Contrast (Enhanced)).

Expected behavior
When the link has focus or hover it should show an underline

Technique F73 states:

If the non-color cue only happens when the mouse hovers over the link or when the link receives focus, it is still a failure.
so that wouldn't be sufficient, it'd need to always have an underline.

It also states: If the link is a different color and bold it would not fail because the boldness is not color dependent.


In other words, for links not to fail I believe they should meet at least 1 of the following:

  • Preserve the default text-decoration underline (in the default state, not only on hover/focus):

  • Use font-weight: bolder:

  • Have a contrast ratio of 3:1 with the surrounding text

@Malvoz Malvoz changed the title Leaflet / openstreet map links only identified by colour Attribution links only identified by colour Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Anything related to ensuring no barriers exist that prevent interactions or information access needs decision
Projects
None yet
Development

No branches or pull requests

3 participants