diff --git a/packages/react-components/react-swatch-picker-preview/src/components/EmptySwatch/useEmptySwatch.ts b/packages/react-components/react-swatch-picker-preview/src/components/EmptySwatch/useEmptySwatch.ts
index 19c2a3c2da779..09f309fa08a17 100644
--- a/packages/react-components/react-swatch-picker-preview/src/components/EmptySwatch/useEmptySwatch.ts
+++ b/packages/react-components/react-swatch-picker-preview/src/components/EmptySwatch/useEmptySwatch.ts
@@ -22,6 +22,7 @@ export const useEmptySwatch_unstable = (
const isGrid = useSwatchPickerContextValue_unstable(ctx => ctx.isGrid);
const role = isGrid ? 'gridcell' : 'radio';
+ const a11yProps = isGrid ? {} : { 'aria-checked': false };
return {
components: {
root: 'button',
@@ -30,6 +31,7 @@ export const useEmptySwatch_unstable = (
getIntrinsicElementProps('button', {
ref,
role,
+ ...a11yProps,
...rest,
}),
{ elementType: 'button' },
diff --git a/packages/react-components/react-swatch-picker-preview/src/components/EmptySwatch/useEmptySwatchStyles.styles.ts b/packages/react-components/react-swatch-picker-preview/src/components/EmptySwatch/useEmptySwatchStyles.styles.ts
index 25efb667a1bd2..07c8997980881 100644
--- a/packages/react-components/react-swatch-picker-preview/src/components/EmptySwatch/useEmptySwatchStyles.styles.ts
+++ b/packages/react-components/react-swatch-picker-preview/src/components/EmptySwatch/useEmptySwatchStyles.styles.ts
@@ -17,7 +17,7 @@ const useStyles = makeResetStyles({
});
const useSizeStyles = makeStyles({
- extraSmall: {
+ 'extra-small': {
width: '20px',
height: '20px',
},
diff --git a/packages/react-components/react-swatch-picker-preview/src/components/ImageSwatch/useImageSwatchStyles.styles.ts b/packages/react-components/react-swatch-picker-preview/src/components/ImageSwatch/useImageSwatchStyles.styles.ts
index e8a2e24278391..15033463032a9 100644
--- a/packages/react-components/react-swatch-picker-preview/src/components/ImageSwatch/useImageSwatchStyles.styles.ts
+++ b/packages/react-components/react-swatch-picker-preview/src/components/ImageSwatch/useImageSwatchStyles.styles.ts
@@ -72,7 +72,7 @@ const useStylesSelected = makeStyles({
});
const useSizeStyles = makeStyles({
- extraSmall: {
+ 'extra-small': {
width: '20px',
height: '20px',
},
@@ -120,11 +120,13 @@ export const useImageSwatchStyles_unstable = (state: ImageSwatchState): ImageSwa
const sizeStyles = useSizeStyles();
const shapeStyles = useShapeStyles();
+ const { size = 'medium', shape = 'square' } = state;
+
state.root.className = mergeClasses(
imageSwatchClassNames.root,
styles,
- sizeStyles[state.size ?? 'medium'],
- shapeStyles[state.shape ?? 'square'],
+ sizeStyles[size],
+ shapeStyles[shape],
state.selected && selectedStyles.selected,
state.root.className,
);
diff --git a/packages/react-components/react-swatch-picker-preview/src/components/SwatchPicker/SwatchPicker.test.tsx b/packages/react-components/react-swatch-picker-preview/src/components/SwatchPicker/SwatchPicker.test.tsx
index 7613c85d17aee..557b62bf57f39 100644
--- a/packages/react-components/react-swatch-picker-preview/src/components/SwatchPicker/SwatchPicker.test.tsx
+++ b/packages/react-components/react-swatch-picker-preview/src/components/SwatchPicker/SwatchPicker.test.tsx
@@ -27,7 +27,6 @@ describe('SwatchPicker', () => {
class="fui-SwatchPicker"
data-tabster="{\\"mover\\":{\\"cyclic\\":true,\\"direction\\":0,\\"memorizeCurrent\\":true}}"
role="radiogroup"
- style="--fui-SwatchPicker--gridGap: 4px;"
>