You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
• Anchor element found with a valid href attribute, but no link content has been supplied.
(#sfToolbarMainContent-8eb6d2 > div:nth-child(2) > a)
<a href="http://127.0.0.1:8000/_profiler/8eb6d2?panel=api_platform.data_collector.request"> <div class="sf-toolbar-...</a>
• This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of 4.13:1. Recommendation: change text
colour to #fff.
(#sfToolbarMainContent-8eb6d2 > div:nth-child(3) > a > div > span:nth-child(2))
<span class="sf-toolbar-value">6862</span>
• This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of 4.13:1. Recommendation: change text
colour to #fff.
(#sfToolbarMainContent-8eb6d2 > div:nth-child(4) > a > div > span:nth-child(2))
<span class="sf-toolbar-value">66.0</span>
• This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of 4.13:1. Recommendation: change text
colour to #fff.
(#sfToolbarMainContent-8eb6d2 > div:nth-child(6) > a > div > span)
<span class="sf-toolbar-value">39</span>
• This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of 4.13:1. Recommendation: change text
colour to #fff.
(#sfToolbarMainContent-8eb6d2 > div:nth-child(8) > a > div > span)
<span class="sf-toolbar-value">47</span>
Possible Solution
Adjust colors slightly on reported items.
Add link content on reported link.
The text was updated successfully, but these errors were encountered:
Regarding the label you add in your API Platform PR, I think that adding the aria-label on the SVG of the icon looks weird (and might cause issues if the icon is reused for another place than the toolbar item).
Instead, the rendering of the toolbar in Symfony could automatically add a label in panel links of the toolbar by putting aria-label="Access the {{ name }} panel" or something like that. And this would improve the accessibility of the toolbar for all panels at once, rather than doing it panel by panel.
Symfony version(s) affected: 5.x
Description
pa11y-ci accessibility tool reports errors related to Symfony toolbar. pa11y-ci can be found at:
https://github.com/pa11y/pa11y-ci
How to reproduce
pa11y-ci http://127.0.0.1:8000
Possible Solution
Adjust colors slightly on reported items.
Add link content on reported link.
The text was updated successfully, but these errors were encountered: