feat(modal): deprecate iconDescription#9828
Conversation
|
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: 67be21f 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/61718f885cc8470007c4e0bc 😎 Browse the preview: https://deploy-preview-9828--carbon-react-next.netlify.app |
|
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 67be21f 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/61718f88512e5300086f0f2b 😎 Browse the preview: https://deploy-preview-9828--carbon-elements.netlify.app |
|
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 67be21f 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/61718f8851d3b200082a8712 😎 Browse the preview: https://deploy-preview-9828--carbon-components-react.netlify.app |
Co-authored-by: DAK <40970507+dakahn@users.noreply.github.com>
|
Looks like its getting flagged in Accessibility Checker for not having a label on the close button. adding |
aledavila
left a comment
There was a problem hiding this comment.
lgtm just looks like you need to update snapshots

REF #9624
Added deprecation warnings for
iconDescriptionfor v11.Changelog
titleandaria-labelattributes now use theariaLabelprop instead oficonDescription.aria-hidden="true"iconDescription. Added a new test to ensure thearia-hiddenis applied to theClose20icon.Testing / Reviewing
Review Modal in Storybook and ensure tests are firing off correctly.
Questions
aria-labelbe required now? REF 9466 - thx @abbeyhrt