-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[ExceptionList] Change warning status items from orange to yellow #813
Conversation
bce4ac3
to
fa01c78
Compare
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.
It looks like in the original issue, the comparison was for a white background. Here, against the light gray background, the yellow technically doesn't pass (it's 4.12:1) for normal sized text (which I should have caught since that's what's used in the actual example in the style guide, doh).
Unfortunately the next darkest shade up in both the yellow and orange families (Darker
) just kind of looks brown next to the red example, which doesn't really convey the orange-y warning-ness.
Thoughts, @sarahill?
Oy 😣 I've updated the playground code to be more realistic to make it easier to see the various states/conditions the exception list component can be in. It's typically used inside of a |
@chloerice It's built into Chrome now (was in Canary for a long time)! If you click on a text color swatch in the CSS window it does its best to calculate the contrast based on what the background color appears to be. |
@sarahill That works for me. Would it be possible to update the hex in the UI kit and style guide to match |
@dpersing I was wondering if we should just update the hex value for @chloerice can you update the value in |
Ahhh okay! (I was looking for it in the "Accessibility" section of the dev tools.) |
@sarahill On it!! |
@sarahill Actually it looks like the only change needed to update the color across the board ( |
@chloerice Ah that makes sense! I'm on it 👊 |
Ok, the update to |
fa01c78
to
a56080f
Compare
Awesome!! 👏 @dpersing @sarahill I've added an upgrade to the new release of |
a56080f
to
a646692
Compare
This looks great to me! Thank you so much, @sarahill and @chloerice! |
@@ -34,6 +35,8 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f | |||
|
|||
### Dependency upgrades | |||
|
|||
- Upgraded `@shopify/polaris-tokens` to v2.1.1 ([#813](https://github.com/Shopify/polaris-react/pull/813)) |
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.
👍
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!
a646692
to
2408cec
Compare
WHY are these changes introduced?
Fixes #804
WHAT is this pull request doing?
Updates the font, icon, and bullet colors of warning status
ExceptionList
items from dark orange to dark yellow.How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx
:🎩 checklist