-
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
fix(button): hcm for ghost icon color contrast #9904
fix(button): hcm for ghost icon color contrast #9904
Conversation
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: e7f7fd6 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/617044723289a1000719d370 😎 Browse the preview: https://deploy-preview-9904--carbon-react-next.netlify.app |
b47e35d
to
6642dda
Compare
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 932d9b0 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/616f3324ddc46400086996b6 😎 Browse the preview: https://deploy-preview-9904--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 932d9b0 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/616f3324ed67aa00086420d1 😎 Browse the preview: https://deploy-preview-9904--carbon-components-react.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: e7f7fd6 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/617044720e93100007843638 😎 Browse the preview: https://deploy-preview-9904--carbon-components-react.netlify.app |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: e7f7fd6 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/61704472026d9a0007d791aa 😎 Browse the preview: https://deploy-preview-9904--carbon-elements.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.
Looks great to me! Thank you for the contribution! 🎉
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 submitting this fix! A couple things in addition to the change requested in this review below:
- The HCM styles need to be at the very end of the file to ensure they're not overridden
- This fix needs to be mirrored in
-- Edit, sorry I meantpackages/carbon-react
packages/styles
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.
@kinueng I hope you don't mind - I went ahead and pushed an update to this PR with the suggestions above. Let me know what you think
@tay1orjones Thank you helping me spruce up my pull request. I don't mind you adding a commit and I get to learn from your changes. I went with the least riskiest change to the stylesheet since I'm so unfamiliar with the Carbon stylesheet codebase. Retested this PR on my Windows machine using high contrast mode |
Fantastic! thanks @kinueng |
Closes #9903
Add CSS specifically for Windows high contrast mode for the ghost style
<Button>
Changelog
Changed
Added CSS specific to the ghost styling for the Button that will apply
fill: white
to the SVG.Testing / Reviewing
Before fix
After fix