mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
Fix glitch for Swatch
This commit is contained in:
parent
2fb9e8b712
commit
a66a69fb19
@ -34,7 +34,7 @@
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.active.size {
|
||||
.active {
|
||||
@apply border-accents-9 border-2;
|
||||
padding-right: 1px;
|
||||
padding-left: 1px;
|
||||
@ -46,6 +46,7 @@
|
||||
}
|
||||
|
||||
.active.textLabel {
|
||||
@apply border-accents-9 border-2;
|
||||
padding-right: calc(1rem - 1px);
|
||||
padding-left: calc(1rem - 1px);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ const Swatch: FC<Omit<ButtonProps, 'variant'> & SwatchProps> = ({
|
||||
[s.size]: variant === 'size',
|
||||
[s.color]: color,
|
||||
[s.dark]: color ? isDark(color) : false,
|
||||
[s.textLabel]: !color && label && label.length < 4,
|
||||
[s.textLabel]: !color && label && label.length > 3,
|
||||
},
|
||||
className
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user