Closed davidsneighbour closed 2 years ago
I think the point of the visually hidden text is to be the button's label for screen readers. Perhaps we should look into if that isn't working in some scenarios (or if the tools aren't picking it up correctly) before jumping to throwing aria around.
We chose to go with a visually hidden text node based on a suggestion from Heydon. https://github.com/paulirish/lite-youtube-embed/issues/9#issuecomment-715876343
@davidsneighbour what a11y tools are flagging this?
I think this can be closed. The error is not coming up as of now. The tool used was AXA dev tools in Chrome. I think it might have been an issue with Javascript-inserted markup maybe.
Accessibility tools complain about the button not having a label for screenreaders. This adds a simple "play video" label that users can adapt to their needs.