fix(ComposedModal-a11y): label body when scrollable#22353
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22353 +/- ##
=======================================
Coverage 95.39% 95.39%
=======================================
Files 543 543
Lines 48446 48465 +19
Branches 6759 6767 +8
=======================================
+ Hits 46214 46233 +19
Misses 2107 2107
Partials 125 125
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
027539f
Closes #19512
Fixes an accessibility issue with ModalBody in ComposedModal where when scrollable, the body gets a
roleofregion, but does not get accessible labelling.Changelog
New
aria-labelandaria-labelledbyprops in ModalBody can be used to manually set the accessible label on the ModalBodyTesting / Reviewing
'Element with "region" role does not have a label'violation should not be presentPR Checklist
As the author of this PR, before marking ready for review, confirm you:
[ ] Updated documentation and storybook examples