Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
edwinjm
on June 21, 2020
|
parent
|
context
|
favorite
| on:
A little bit of plain JavaScript can do a lot
Do not use classes to mark something as selected. People using screen readers won't know whether something is selected. Use aria attributes like aria-selected instead.
https://www.w3.org/WAI/PF/aria/states_and_properties#aria-se...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://www.w3.org/WAI/PF/aria/states_and_properties#aria-se...