Skip to content

Commit ad72540

Browse files
CHE1RONyihuiliao
andauthored
fix: prevent classname to be overwritten in color swatch component (#6584)
* fix: prevent classname to be overwritten in color swatch component * fix: try again * fix: apply alphabetical sort order * fix lint * reorder imports --------- Co-authored-by: Yihui Liao <[email protected]>
1 parent 2fd87d9 commit ad72540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-spectrum/color/src/ColorSwatch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function ColorSwatch(props: SpectrumColorSwatchProps, ref: DOMRef<HTMLDivElement
6161
// Red slash to indicate there is no selected color.
6262
: 'linear-gradient(to bottom right, transparent calc(50% - 2px), var(--spectrum-red-900) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)) no-repeat'
6363
}}
64-
className={style({
64+
className={styleProps.className + style({
6565
size: {
6666
size: {
6767
XS: 4,

0 commit comments

Comments
 (0)