-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(HCM): add HCM mixin, use forced-colors
#8489
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
Conversation
Deploy preview for carbon-elements ready! Built with commit ff418f4 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit ff418f4 https://deploy-preview-8489--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.
looks good to me
@dakahn added in the rest if you want to take a look and confirm 👍🏻 |
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 awesome. Sorry for the review delay 👍🏽
Closes #8413
Closes #8458
Updates the HCM media queries around the codebase to use a mixin, and moves the HCM to the bottom of the
.scss
files to ensure they are not overwritten.Also uses
forced-colors
which is fully supported in Chrome 🎉Changelog
New
@mixin high-contrast-mode
which has a few built-in styles to handle various HCM fixes. This mixin makes it easier to update the underlying media query used for HCM.forced-colors
support, which is supported in Chrome, Edge, Safari (opt-in), and Firefox (opt-in).Changed
Removed
.scss
filesTesting / Reviewing
In Windows, enable High Contrast Mode, and open up Firefox, Chrome, and Edge. In Firefox, you will need to type
about:config
in the address bar, then search forforced-colors
and set that totrue
. Then, ensure each component is usable when in HCM and that all icons are displayed.