loading...

re: Dropdowns Without Javascript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Another accessibility problem with hover-to-open is that touch devices sometimes emulate that with a long-press but you can't rely on it. I'm not ...
 

Another issue is accessibility. Browser and e-readers doesn’t recognise this as dropdown list since it lacks of aria attributes and states

 

Yes, I intentionally left aria attributes off to keep the examples readable (hence my warning at the end). Can you elaborate on what you mean about states, though?

Ui component states should be defined with aria attributes.

developer.mozilla.org/en-US/docs/L...

developer.mozilla.org/en-US/docs/W...

Developers should use ARIA states to indicate the state of UI widget elements and use CSS attribute selectors to alter the visual appearance based on the state changes (rather than using script to change a class name on the element).

code of conduct - report abuse