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
feat(notification): introduce high contrast style #2814
feat(notification): introduce high contrast style #2814
Conversation
Deploy preview for the-carbon-components ready! Built with commit e352f6c https://deploy-preview-2814--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react ready! Built with commit e352f6c https://deploy-preview-2814--carbon-components-react.netlify.com |
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.
looks good to me!
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.
Thanks for getting this done so quickly! @asudoh Just 1 comment,
Inline notification got drop-shadow in the previous iteration because of the background color is too close to Gray10 ui-background. Now with high contrast colors, we can safely remove the drop shadow. Thanks!
Comment/question: Can we keep the previous style with colored background as a secondary style? We are seeing potential use cases where users might want the more subtle style, so ideally we can keep both, where High contrast is default/primary. Mentioned this in #2354 (comment) Thanks!
70ae352
to
368edcf
Compare
368edcf
to
11a6edd
Compare
@shixiedesign Updated the code to remove drop shadow from inline notification. Also implemented "light" variant with old color scheme - Great to have your thoughts on here, esp. would you think of better naming? Thanks! |
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.
Perfect! 🎉 Thank you so much.
Naming wise,
- suggestion 1:
low-contrast
variant. Dark background has been referred to ashigh-contrast
styling. - suggestion 2:
pastel
variant, but on dark themes this wouldn't make sense as much. - suggestion 3: say use
tinted background
?
I proposed these to design team and will return with decision shortly. Let's wait a minute to merge until this is resolved.
Hi @asudoh |
Thank you for coming up with a name @shixiedesign! Updated. |
Fixes #2354.
Changelog
Changed
$inverse-01
$inverse-02
$inverse-01
(@carbon-design-system/design Does it match your intent?)$inverse-support-0x
Testing / Reviewing
Testing should make sure notification looks good.