-
Notifications
You must be signed in to change notification settings - Fork 328
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
Consider making tabs <section> into <div> #1339
Labels
Comments
kellylee-gds
added
Effort: days
and removed
awaiting triage
Needs triaging by team
labels
May 15, 2019
25 tasks
NickColley
added a commit
that referenced
this issue
Feb 25, 2020
Sections when they have an accessible name create landmarks. > The use of region landmarks should be limited, as too many landmarks can dilute their usefulness in quickly navigating to important areas of a page. If you find there are many landmarks, especially generic regions existing in a single page, then the page’s structure should be reexamined. - https://www.scottohara.me/blog/2018/03/03/landmarks.html Also, when the component has not be enhanced these sections do not have accessible names so it means they are the equivalent of a div already. When they're enhanced they're given a role of tabpanel, so they're no longer a section. Given this I'm not sure it was ever useful and by making them generic divs we can avoid HTML validators warning about this component. Closes #1339
NickColley
added a commit
that referenced
this issue
Feb 26, 2020
Sections when they have an accessible name create landmarks. > The use of region landmarks should be limited, as too many landmarks can dilute their usefulness in quickly navigating to important areas of a page. If you find there are many landmarks, especially generic regions existing in a single page, then the page’s structure should be reexamined. - https://www.scottohara.me/blog/2018/03/03/landmarks.html Also, when the component has not be enhanced these sections do not have accessible names so it means they are the equivalent of a div already. When they're enhanced they're given a role of tabpanel, so they're no longer a section. Given this I'm not sure it was ever useful and by making them generic divs we can avoid HTML validators warning about this component. Closes #1339
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On encountering
<section>
in tabs, HTML validator gives the following warning:if it doesn't contain a heading.
According to the HTML specs
We should consider making this element a
<div>
.The text was updated successfully, but these errors were encountered: