-
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
feat(tag): add high-contrast type #5910
feat(tag): add high-contrast type #5910
Conversation
Deploy preview for carbon-elements ready! Built with commit 86ba77c |
Deploy preview for carbon-components-react ready! Built with commit 86ba77c https://deploy-preview-5910--carbon-components-react.netlify.app |
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.
could you update the snapshots to pass CI?
@emyarod Sure thing. Fix is pushed! |
Would it be better to use the |
@designertyler Good point, haven't thought about that. |
@designertyler anything else you can think of after the updates from @janhassel using the inverse tokens? 👀 |
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.
@joshblack @janhassel No, this looks good 👍
With the recent work on bringin over the normal tag colors in filter tags, the default dark-gray appearance is not supported anymore. However, there are situations where a higher contrast than the normal gray tag color is needed. In fact, the multi-select component uses a custom background-color override since it sits inside of an input element (and therefore usually on a light gray background).
This PR is a proposal on introducing a "high-contrast" tag type (name is not set in stone) which essentially inverts the default gray appearance from light and dark themes.
So, in white/g10 it will look like a default tag in g90/g100 and in g90/g100 it will look like a default tag in white/g10.
Changelog
New
high-contrast
high-contrast
type to React componentTesting / Reviewing
Verify new tag type on react storybook.