Skip to content

Commit c30f8a3

Browse files
revert: undo template changes for variant coverage
1 parent 538be42 commit c30f8a3

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

components/swatch/stories/template.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ export const Template = ({
1818
swatchColor,
1919
customStyles = {},
2020
id,
21-
isImage = false,
22-
imageUrl,
23-
isGradient = false,
24-
isMixedValue = false,
25-
gradient,
2621
} = {}, context = {}) => {
2722
const { updateArgs } = context;
2823

@@ -37,18 +32,13 @@ export const Template = ({
3732
)}`]: typeof rounding !== "undefined" && rounding !== "regular",
3833
"is-selected": !isDisabled && isSelected,
3934
"is-disabled": isDisabled,
40-
"is-image": (isImage || isGradient)
41-
&& (typeof gradient !== "undefined" || gradient !== "transparent" || imageUrl !== "undefined"),
42-
"is-mixedValue": !isDisabled && isMixedValue,
4335
"is-nothing": !isDisabled && (typeof swatchColor === "undefined" || swatchColor === "transparent"),
4436
...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}),
4537
})}
4638
?disabled=${isDisabled}
4739
id=${ifDefined(id)}
4840
style=${ifDefined(styleMap({
4941
"--spectrum-picked-color": swatchColor,
50-
"--spectrum-gradient": gradient,
51-
"--spectrum-background": `url(${imageUrl})`,
5242
...customStyles,
5343
}))}
5444
tabindex="0"
@@ -71,11 +61,6 @@ export const Template = ({
7161
setName: "workflow",
7262
iconName: "Cancel",
7363
}, context)] : []),
74-
...(isMixedValue ? [Icon({
75-
customClasses: [`${rootClass}-mixedValueIcon`],
76-
setName: "ui",
77-
iconName: "Dash",
78-
}, context)] : []),
7964
]
8065
}, context)}
8166
</div>

0 commit comments

Comments
 (0)