diff --git a/packages/@react-spectrum/s2/chromatic/Button.stories.tsx b/packages/@react-spectrum/s2/chromatic/Button.stories.tsx index 245573f578e..9df9862775a 100644 --- a/packages/@react-spectrum/s2/chromatic/Button.stories.tsx +++ b/packages/@react-spectrum/s2/chromatic/Button.stories.tsx @@ -50,6 +50,18 @@ let genaiStates = [{isDisabled: true}, {size: ['S', 'M', 'L', 'XL']}]; let genaiCombinations = generatePowerset(genaiStates); +let staticColorAutoStates = [ + {isQuiet: true}, + {isDisabled: true}, + {size: ['S', 'M', 'L', 'XL']}, + {staticColor: ['auto']}, + {variant: ['accent', 'negative', 'primary', 'secondary']} +]; + +let staticColorAutoCombinations = generatePowerset(staticColorAutoStates).filter( + c => c.staticColor != null +); + const Template = (args: ButtonProps & {combos?: any[]}): ReactNode => { let {children, combos = combinations, variant, ...otherArgs} = args; return ( @@ -82,7 +94,11 @@ const Template = (args: ButtonProps & {combos?: any[]}): ReactNode => { ); if (c.staticColor != null) { - return {button}; + return ( + + {button} + + ); } return button; @@ -95,6 +111,10 @@ export const Default: StoryObj = { render: args =>