-
Notifications
You must be signed in to change notification settings - Fork 762
Open
Labels
Description
Package
Other...
Package version
2.0.183
Current Behavior
When changing the color of a Regular or Filled icon from the brand icons package, in high contrast mode the color remains and isn't swapping to high contrast system color.
Expected Behavior
- All "Regular" and "Filled" icons should have
forced-color-adjust: autostyling on the SVG element so in high contrast mode any colors applied are swapped out for high contrast system colors.
This is what "@fluentui/react-icons" (@2.0.306) package does for their icons to support high contrast mode. - "Color" icons should remain without it as product logo colors should never be altered.
Example of react-icons working as expected:

Reproduction
import { Sharepoint16Filled, Sharepoint16Regular } from '@fluentui/react-brand-icons';
const Render = () => (
<>
<Sharepoint16Filled style={{ color: 'red' }}/>
<Sharepoint16Regular style={{ color: 'red' }}/>
</>
);
Steps to reproduce
- Import a "Filled" or "Regular" icon (not a "Color" icon) from the @fluentui/react-brand-icons package.
- Apply any color to the SVG.
- Swap to Windows high contrast mode (alt + shift + print screen).
Suggested severity
Medium - Has workaround
Products/sites affected
Anywhere a "Filled" or "Regular" product icon is used
Are you willing to submit a PR to fix?
no
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
