Skip to content

Commit

Permalink
Update Icon story from tone currentColor to inherit (#11315)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronccasanova authored Dec 11, 2023
1 parent d0babcc commit c776e7f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions polaris-react/src/components/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,36 +92,36 @@ export function Colored() {
);
}

export function CurrentColor() {
export function WithToneInherit() {
return (
<BlockStack gap="200">
<Text as="p" tone="caution" variant="bodyMd" alignment="center">
Caution tone
<Icon source={icons.CirclePlusMinor} tone="currentColor" />
<Icon source={icons.CirclePlusMinor} tone="inherit" />
</Text>
<Text as="p" tone="critical" variant="bodyMd" alignment="center">
Critical tone
<Icon source={icons.CirclePlusMinor} tone="currentColor" />
<Icon source={icons.CirclePlusMinor} tone="inherit" />
</Text>
<Text as="p" tone="magic" variant="bodyMd" alignment="center">
Magic tone
<Icon source={icons.CirclePlusMinor} tone="currentColor" />
<Icon source={icons.CirclePlusMinor} tone="inherit" />
</Text>
<Text as="p" tone="magic-subdued" variant="bodyMd" alignment="center">
Magic subdued tone
<Icon source={icons.CirclePlusMinor} tone="currentColor" />
<Icon source={icons.CirclePlusMinor} tone="inherit" />
</Text>
<Text as="p" tone="subdued" variant="bodyMd" alignment="center">
Subdued tone
<Icon source={icons.CirclePlusMinor} tone="currentColor" />
<Icon source={icons.CirclePlusMinor} tone="inherit" />
</Text>
<Text as="p" tone="success" variant="bodyMd" alignment="center">
Success tone
<Icon source={icons.CirclePlusMinor} tone="currentColor" />
<Icon source={icons.CirclePlusMinor} tone="inherit" />
</Text>
<Text as="p" tone="text-inverse" variant="bodyMd" alignment="center">
Text inverse tone
<Icon source={icons.CirclePlusMinor} tone="currentColor" />
<Icon source={icons.CirclePlusMinor} tone="inherit" />
</Text>
</BlockStack>
);
Expand Down

0 comments on commit c776e7f

Please sign in to comment.