diff --git a/src/components/Button/Button-v2.stories.tsx b/src/components/Button/Button-v2.stories.tsx index 903c0a160..31ea8b84c 100644 --- a/src/components/Button/Button-v2.stories.tsx +++ b/src/components/Button/Button-v2.stories.tsx @@ -127,13 +127,11 @@ export const InverseRanks: StoryObj = { ...DefaultRanks.args, variant: 'inverse', }, + parameters: { + backgrounds: { default: 'background-utility-default-high-emphasis' }, + }, render: DefaultRanks.render, - // TODO: find a cleaner way to decorate with unavailable tokens using parameters:backgounds: - decorators: [ - (Story) => ( -
{Story()}
- ), - ], + decorators: [(Story) =>
{Story()}
], }; /** @@ -145,13 +143,11 @@ export const InverseDisabledRanks: StoryObj = { variant: 'inverse', isDisabled: true, }, + parameters: { + backgrounds: { default: 'background-utility-default-high-emphasis' }, + }, render: DefaultRanks.render, - // TODO: find a cleaner way to decorate with unavailable tokens using parameters:backgounds: - decorators: [ - (Story) => ( -
{Story()}
- ), - ], + decorators: [(Story) =>
{Story()}
], }; /** diff --git a/src/components/Button/__snapshots__/Button-v2.test.tsx.snap b/src/components/Button/__snapshots__/Button-v2.test.tsx.snap index 96dbe5f11..bcf797292 100644 --- a/src/components/Button/__snapshots__/Button-v2.test.tsx.snap +++ b/src/components/Button/__snapshots__/Button-v2.test.tsx.snap @@ -245,7 +245,7 @@ exports[`