Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to use h tags instead of role="heading" and aria-level #249

Closed
sebpettersson opened this issue Feb 11, 2020 · 2 comments
Closed

Comments

@sebpettersson
Copy link

"When possible, use native heading mark-up directly. For example, it is preferable to use <h1> rather than using <div role="heading" aria-level="1">"

It would be great to use semantically correct markup instead of relying on aria attributes.

Likewise, <div role="button" tabindex="0">" could just be <button>.

This is how the accordion example on w3.org is set up.

@holloway
Copy link

I believe this was done intentionally to avoid inheriting any styles, but I see your point.

@synecdokey
Copy link
Contributor

Duplicate of #322

@synecdokey synecdokey marked this as a duplicate of #322 Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants