-
Notifications
You must be signed in to change notification settings - Fork 75
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
calcite-panel: Set the default heading to be a div
to accommodate more audiences
#5099
Comments
It does seem a bit weird that we have a default set at all. I almost wonder if it should be rendering a plain div / span by default, and only render h1-h6 when a user sets this property. Ultimately, even if in Map Viewer defaulting to h2 makes sense, it may not be the case for another app, and they would need to adjust that similarly. |
headingLevel
to be 2 for accessibility reasonsspan
to accommodate more audiences
@geospatialem @macandcheese I noticed we didn't update this issue after discussion. 😅 I believe we agreed to not set a default as we can't guarantee it'll be correct. Can you confirm? |
Correct, I think we said the default internally rendered element would be a div, or span (defer to @geospatialem), and it would only render h1-h6 when requested via prop. No visual changes for any element. |
Exactly what @macandcheese said (he beat me to it!) 🐇 @jcfranco Good memory, and thanks for catching this one! Yes, we'd like to have the default be set to a |
A |
Installed and assigned for verification. |
span
to accommodate more audiencesdiv
to accommodate more audiences
Summary
The mapViewer has been undergoing accessibility review, and one of the issues that came up was the headers within calcite-panels which we use all over the app. The comment from those reviewers is
[Issue] There are dialogs present that have headings that do not match their visual level. The first heading starts with <h3> instead of <h2>.
Could we consider setting the default for
headingLevel
to be 2 to match this review, otherwise we would need to scour everywhere in the app where we use calcite-panels and manually make this changeActual Behavior
The
headingLevel
appears to default to 3Expected Behavior
Default the
headingLevel
to 2 to satisfy the accessibility review requirementsReproduction Sample
https://codepen.io/kevindoshier/pen/dymmBwy
Reproduction Steps
Reproduction Version
beta.86
Working W3C Example/Tutorial
No response
Relevant Info
No response
Regression?
No response
The text was updated successfully, but these errors were encountered: