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

fix: a11y modal heading issue #17447

Merged

Conversation

riddhybansal
Copy link
Contributor

Closes #17397

Maintain hierarchical order for the Heading levels :
Recommended to present the Modal Main heading in H2.

Changelog

Changed

  • Modal and composed modal heading to h2

Testing / Reviewing

Modal and composed modal heading should be in h2

Copy link

netlify bot commented Sep 16, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 1684282
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6703ec395f12d40008b5d03e
😎 Deploy Preview https://deploy-preview-17447--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 16, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 1684282
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6703ec39615f850008fdc956
😎 Deploy Preview https://deploy-preview-17447--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.07%. Comparing base (e8c7672) to head (1684282).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #17447   +/-   ##
=======================================
  Coverage   77.07%   77.07%           
=======================================
  Files         409      409           
  Lines       14021    14021           
  Branches     4355     4307   -48     
=======================================
  Hits        10807    10807           
- Misses       3043     3044    +1     
+ Partials      171      170    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kennylam
Copy link
Member

I'm wondering if this is actually required since the current component structure looks correct. There is no content following the first h2, which would make having another h2 immediately following it confusing to screen reader users. Maybe we could run this by Ragu to confirm?

@riddhybansal
Copy link
Contributor Author

I'm wondering if this is actually required since the current component structure looks correct. There is no content following the first h2, which would make having another h2 immediately following it confusing to screen reader users. Maybe we could run this by Ragu to confirm?

I had the same concerns. Raghu told the product team to have this heirarchy in modal. Check here carbon-design-system/ibm-products#6019 . So raised the PR , not sure its required or not.

@kennylam
Copy link
Member

Ah ok. I'll reach out to Ragu to discuss during the next QA meeeting.

@alisonjoseph
Copy link
Member

@riddhybansal whats the status on this one?

@riddhybansal
Copy link
Contributor Author

@riddhybansal whats the status on this one?

Heya @alisonjoseph I think @kennylam had a word with Raghu and this fix is required , so I think you can review it !! @kennylam can you confirm this ?

Copy link
Member

@kennylam kennylam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, sorry for forgetting to update. Yes, spoke to Ragu about this and he said that either way is not really an issue.

@tay1orjones tay1orjones added this pull request to the merge queue Oct 7, 2024
Merged via the queue into carbon-design-system:main with commit eeaebc9 Oct 7, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[a11y]: Composed Modal, Dialog heading is provided in h3 instead of h2
4 participants