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(notification): update status icon description prop #5266

Merged

Conversation

tw15egan
Copy link
Member

@tw15egan tw15egan commented Feb 4, 2020

Closes #5261

Adds in a new prop, statusIconDescription that allows a user to add a description to the status icon. Defaults to ${kind} icon if no prop is provided.

Changelog

New

  • statusIconDescription

Removed

  • The status NotificationIcon no longer takes the same iconDescription as the close button

Testing / Reviewing

Ensure the status icon and close button have different text on hover, even if no description is provided.

@tw15egan tw15egan requested a review from a team as a code owner February 4, 2020 18:04
@ghost ghost requested review from emyarod and joshblack February 4, 2020 18:04
@netlify
Copy link

netlify bot commented Feb 4, 2020

Deploy preview for carbon-elements ready!

Built with commit f6f7d45

https://deploy-preview-5266--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Feb 4, 2020

Deploy preview for carbon-components-react ready!

Built with commit f6f7d45

https://deploy-preview-5266--carbon-components-react.netlify.com

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @tw15egan!

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

looks good to me, just one question about the prop requirement

packages/react/src/components/Notification/Notification.js Outdated Show resolved Hide resolved
@tw15egan tw15egan merged commit 3e77d6d into carbon-design-system:master Feb 10, 2020
@tw15egan tw15egan deleted the notification-icon-update branch April 28, 2021 18:17
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.

Notification iconDescription is given to both the close icon and error/success/warning icon
3 participants