-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
chore(modal): added deprecation warning for iconDescription #9787
chore(modal): added deprecation warning for iconDescription #9787
Conversation
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: d861ec9 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/615efab9ee15e20007018cc9 😎 Browse the preview: https://deploy-preview-9787--carbon-react-next.netlify.app |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: d861ec9 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/615efab95946770008e8ceba 😎 Browse the preview: https://deploy-preview-9787--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: d861ec9 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/615efab9f9da270007133b1c 😎 Browse the preview: https://deploy-preview-9787--carbon-components-react.netlify.app |
Co-authored-by: Alessandra Davila <aledavila@users.noreply.github.com>
@@ -217,7 +220,8 @@ export default class Modal extends Component { | |||
primaryButtonDisabled: false, | |||
onKeyDown: () => {}, | |||
passiveModal: false, | |||
iconDescription: 'Close', | |||
// iconDescription is deprecated in v11 use aria-label instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, do we usually remove the default prop value even if the prop hasn't been deprecated yet?
@@ -409,16 +413,20 @@ export default class Modal extends Component { | |||
Array.isArray(secondaryButtons) && secondaryButtons.length === 2, | |||
}); | |||
|
|||
// ['aria-label']: ariaLabel, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be commented out?
Should |
REF #9624
Added deprecation warnings for
iconDescription
for v11.Title
andaria-label
attributes now use theariaLabel
prop instead oficonDescription
.aria-hidden="true"
Testing
Review Modal in Storybook and ensure tests are firing off correctly.
Feedback
Unclear on why the tests are failing because of the deprecation warning. Feedback welcome.