-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Component
Field
Package version
9.58.0
React version
17
Environment
n/aCurrent Behavior
When using <Field> validationMessage, where validationState is set to warning, error, or success, the colors being set to tokens like colorPaletteDarkOrangeForeground,, colorPaletteRedForeground1, colorPaletteRedBorder2, etc.
Since those tokens don't really change from theme to theme, it might be unexpected that these don't change like the MessageBar colors.
Expected Behavior
it should be using tokens like colorStatusDangerForeground1 or colorStatusSuccessForeground1 to color these statuses, to match the MessageBar color palette.
Reproduction
https://react.fluentui.dev/?path=/docs/components-field--docs#validation-message
Steps to reproduce
Go to https://react.fluentui.dev/?path=/docs/components-field--docs#validation-message - to the Validation Message section of the Field. Inspect the colors used, and see that they're not using status colors for the theme.
Comparing to https://react.fluentui.dev/?path=/docs/components-messagebar--docs#intent which uses the status colors.
Are you reporting an Accessibility issue?
no
Suggested severity
Low - Has or doesn't need a workaround
Products/sites affected
No response
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.