diff --git a/packages/@react-spectrum/s2/src/IllustratedMessage.tsx b/packages/@react-spectrum/s2/src/IllustratedMessage.tsx index eeafbd923f4..61295f36669 100644 --- a/packages/@react-spectrum/s2/src/IllustratedMessage.tsx +++ b/packages/@react-spectrum/s2/src/IllustratedMessage.tsx @@ -114,9 +114,7 @@ const illustration = style({ borderStyle: 'none', borderRadius: 'full', backgroundColor: { - default: 'informative', + default: 'informative-visual', variant: { - positive: 'positive', - notice: 'notice', - negative: 'negative' + positive: 'positive-visual', + notice: 'notice-visual', + negative: 'negative-visual' }, staticColor: { white: { diff --git a/packages/@react-spectrum/s2/style/spectrum-theme.ts b/packages/@react-spectrum/s2/style/spectrum-theme.ts index 9a18396baba..7ce4da05ae7 100644 --- a/packages/@react-spectrum/s2/style/spectrum-theme.ts +++ b/packages/@react-spectrum/s2/style/spectrum-theme.ts @@ -451,6 +451,7 @@ export const style = createTheme({ isPressed: colorToken('neutral-subdued-content-color-down') // isSelected: colorToken('neutral-subdued-content-color-selected'), }, + 'neutral-visual': weirdColorToken('neutral-visual-color'), negative: { default: colorToken('negative-content-color-default'), isHovered: colorToken('negative-content-color-hover'), @@ -495,6 +496,7 @@ export const style = createTheme({ isFocusVisible: weirdColorToken('negative-background-color-key-focus'), isPressed: weirdColorToken('negative-background-color-down') }, + 'negative-visual': weirdColorToken('negative-visual-color'), 'negative-subtle': weirdColorToken('negative-subtle-background-color-default'), informative: { default: weirdColorToken('informative-background-color-default'), @@ -502,6 +504,7 @@ export const style = createTheme({ isFocusVisible: weirdColorToken('informative-background-color-key-focus'), isPressed: weirdColorToken('informative-background-color-down') }, + 'informative-visual': weirdColorToken('informative-visual-color'), 'informative-subtle': weirdColorToken('informative-subtle-background-color-default'), positive: { default: weirdColorToken('positive-background-color-default'), @@ -509,8 +512,10 @@ export const style = createTheme({ isFocusVisible: weirdColorToken('positive-background-color-key-focus'), isPressed: weirdColorToken('positive-background-color-down') }, + 'positive-visual': weirdColorToken('positive-visual-color'), 'positive-subtle': weirdColorToken('positive-subtle-background-color-default'), notice: weirdColorToken('notice-background-color-default'), + 'notice-visual': weirdColorToken('notice-visual-color'), 'notice-subtle': weirdColorToken('notice-subtle-background-color-default'), gray: weirdColorToken('gray-background-color-default'), 'gray-subtle': weirdColorToken('gray-subtle-background-color-default'),