Open dan-bowerman opened 1 month ago
The "Play" and "Minimize" buttons are tripping up scanning tools, this needs to be addressed ASAP. It can be difficult to get the WAVE toolbar to trip this error.
Taking the scan at face value, here's the "Minimize" button:
<button class="absolute right-4 minimize-button" content="Minimize"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="6 6 36 36" height="24" width="24" fill="#595959"> <path d="m24 30.75-12-12 2.15-2.15L24 26.5l9.85-9.85L36 18.8Z"></path> </svg> </button>
and the "Play" button:
<button class="absolute left-4 play-button" content="Play"> <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#595959"> <path d="M0 0h24v24H0z" fill="none"></path> <path d="M8 5v14l11-7z"></path> </svg>
The buttons likely need roles and aria-labels? See below.
Additionally, there are contrast issues with the grey labels (typically "Year") along the slider notches. Make them darker.
I expect a clean accessibility report and buttons to explain their purpose.
The use of the time-slider buttons aren't made clear to screen readers and other utilities.
https://www.w3.org/TR/WCAG22/#link-purpose-in-context
Add aria-label and roles to the buttons:
<button class="absolute right-4 minimize-button" aria-label="Minimize" role="button"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="6 6 36 36" height="24" width="24" fill="#595959"> <path d="m24 30.75-12-12 2.15-2.15L24 26.5l9.85-9.85L36 18.8Z"></path> </svg> </button>
Improve the contrast of the time slider labels, darker or black than the grey they are currently.
Description
The "Play" and "Minimize" buttons are tripping up scanning tools, this needs to be addressed ASAP. It can be difficult to get the WAVE toolbar to trip this error.
Taking the scan at face value, here's the "Minimize" button:
and the "Play" button:
The buttons likely need roles and aria-labels? See below.
Additionally, there are contrast issues with the grey labels (typically "Year") along the slider notches. Make them darker.
Environment
Steps to reproduce
Expected behavior
I expect a clean accessibility report and buttons to explain their purpose.
Actual behavior
The use of the time-slider buttons aren't made clear to screen readers and other utilities.
Additional information
https://www.w3.org/TR/WCAG22/#link-purpose-in-context
Possible solution
Add aria-label and roles to the buttons:
Improve the contrast of the time slider labels, darker or black than the grey they are currently.