You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hardcoded heading levels in components cause Accessibility problems #3118
There are components in the DSR project that uses hardcoded heading tags which causes issues with illogical heading orders. Axe-core rule
Ex:
<h1> First Heading </h1>
<SetupAssistant ...>
<SetupAssistantStep
header={(<h2>Should be a h2 tag</h2>)}
...
/>
</SetupAssistant>
SetupAssistantStep generates a parent <h3> and renders the heading prop as a child, breaking the logical ordering of headings. The tag is rendered on this line.
Thanks for opening your first issue! 👋
If you have found this library helpful, please star it. A maintainer will try to respond within 7 days. If you haven’t heard anything by then, please bump this thread.
Activity
welcome commentedon Jun 9, 2023
Thanks for opening your first issue! 👋
If you have found this library helpful, please star it. A maintainer will try to respond within 7 days. If you haven’t heard anything by then, please bump this thread.
bvo-sf commentedon Jun 9, 2023
Suggestion: The heading tags should be changed to a more general tag
span, div, ectto allow developers the option to specify the heading as a prop.