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 =>
};
+export const StaticColorAuto: StoryObj = {
+ render: args =>
+};
+
export const WithIcon: StoryObj = {
render: args => ,
args: {
diff --git a/packages/@react-spectrum/s2/src/Button.tsx b/packages/@react-spectrum/s2/src/Button.tsx
index f979225fbfe..b3c28d46eb3 100644
--- a/packages/@react-spectrum/s2/src/Button.tsx
+++ b/packages/@react-spectrum/s2/src/Button.tsx
@@ -253,7 +253,12 @@ const button = style
{props.children}
- {props.staticColor === 'auto' && (
+ {props.staticColor === 'auto' && !props.hideColorPicker && (