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

feat(tag): add high-contrast type #5910

Merged
merged 5 commits into from
Apr 27, 2020

Conversation

janhassel
Copy link
Member

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).

image

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

  • Extended tag component tokens to include high-contrast
  • Added high-contrast type to React component

Testing / Reviewing

Verify new tag type on react storybook.

@janhassel janhassel requested a review from a team as a code owner April 22, 2020 15:15
@ghost ghost requested review from asudoh and joshblack April 22, 2020 15:15
@netlify
Copy link

netlify bot commented Apr 22, 2020

Deploy preview for carbon-elements ready!

Built with commit 86ba77c

https://deploy-preview-5910--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Apr 22, 2020

Deploy preview for carbon-components-react ready!

Built with commit 86ba77c

https://deploy-preview-5910--carbon-components-react.netlify.app

@asudoh asudoh requested review from a team and designertyler and removed request for a team April 22, 2020 22:03
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.

could you update the snapshots to pass CI?

@janhassel janhassel requested a review from a team as a code owner April 23, 2020 14:49
@janhassel
Copy link
Member Author

@emyarod Sure thing. Fix is pushed!

@designertyler
Copy link
Contributor

Would it be better to use the $inverse-01 and $inverse-02 tokens for type and background colors? This would be similar to the notification component.

@janhassel
Copy link
Member Author

@designertyler Good point, haven't thought about that.
Just pushed an update appyling $inverse-01 for the text, $inverse-02 for the background and $inverse-hover-ui for the hover.

@joshblack
Copy link
Contributor

joshblack commented Apr 27, 2020

@designertyler anything else you can think of after the updates from @janhassel using the inverse tokens? 👀

Copy link
Contributor

@designertyler designertyler left a 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 👍

@joshblack joshblack merged commit 445e650 into carbon-design-system:master Apr 27, 2020
@janhassel janhassel deleted the high-contrast-tag branch April 28, 2020 06:32
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.

5 participants