Apart from creating custom UI elements, you shouldn’t need to use the role attribute at all.
-
Apart from creating custom UI elements, you shouldn’t need to use the role attribute at all.
Edit: Oh, and live regions. role="alert" and role="status" are often a better choice than using aria-live.
-
@yatil Repeat this for all the people adding `role="list"` to every damn `<ul>` because they disagree with Safari/VO but have no idea if users want it.
-
@aardrian I mean, I would, but I already said this in January 2019 https://yatil.net/blog/much-ado-about-no-lists
-
@yatil @aardrian On an audit I received, I'm asked to use this https://www.w3.org/WAI/ARIA/apg/patterns/radio/examples/radio/ rather than a native radio input
-
-
@matuzo @Thain @aardrian Because the APG examples are: “If you were held hostage and the only way to get out of your predicament is to make {component name} but you CANNOT use HTML under all circumstances, what would you do?”
They are ARIA examples, and unfortunately because the work is member sponsored, look much slicker than the better (but not perfect) Tutorials that I helped to create. All those patterns were on my list for Tutorials.
-