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

Allow consumer to specify tag level on Dialog/Drawer title to help screenreader users navigate. #6757

Open
faye-tan opened this issue Apr 4, 2024 · 0 comments

Comments

@faye-tan
Copy link

faye-tan commented Apr 4, 2024

Environment

  • Package version(s): 5.8.2
  • Browser and OS versions: Edge, Chrome, MacOS Sonoma 14.4

Feature request

Currently the Dialog and Drawer components render their titles as h6 and h4 tags respectively. It would be great to let the consumer specify the heading level and have the title render as it currently does with all existing styles. This is important because when using these components, one may have some kind of defined hierarchy with heading levels they want to maintain so restricting the header title to h6 and h4 tags breaks the hierarchical organization one wishes to impose when using these components.

Examples

From docs:

  • Drawer has h4 title heading level
Screenshot 2024-04-04 at 4 57 41 PM

Dialog has h6 title heading level: this one is especially difficult to get around as there are no heading levels lower than 6 so I can't put subheading in Dialogs
Screenshot 2024-04-04 at 5 00 35 PM

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

1 participant