-
-
Notifications
You must be signed in to change notification settings - Fork 271
Labels
a11yRelated to accessibility and inclusionRelated to accessibility and inclusionfrontFrontend, DesignFrontend, Designgood first issueGood for newcomersGood for newcomers
Description
Currently when viewing with Windows High Contrast Mode (WHCM) enabled almost none of the icons show up. This is because WHCM overrides the colours.
npmx.dev running in Microsoft Edge with Windows High Contrast Mode enabled.
The icon classes all seem to use color: inherit, so we can use forced-color-adjust: preserve-parent-color. We can provide this to the extraProperties option for the icons preset in the UnoCSS config:
Lines 24 to 26 in 3cf7fef
| extraProperties: { | |
| display: 'inline-block', | |
| }, |
If you don’t have Windows, you can emulate forced colors in Chromium-browsers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a11yRelated to accessibility and inclusionRelated to accessibility and inclusionfrontFrontend, DesignFrontend, Designgood first issueGood for newcomersGood for newcomers