Skip to content

Commit c27c597

Browse files
feat(swatch): add support for lightBorder
1 parent dcb2d44 commit c27c597

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

components/swatch/index.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,21 @@
283283
}
284284
}
285285

286+
/* the lightBorder does not change values between light/dark modes */
287+
.spectrum-Swatch--lightBorder {
288+
.spectrum--light &,
289+
.spectrum--dark &,
290+
.spectrum--darkest & {
291+
--spectrum-swatch-border-color: rgba(0, 0, 0, 20%);
292+
}
293+
294+
.spectrum-Swatch-fill {
295+
&::before {
296+
box-shadow: inset 0 0 0 var(--mod-swatch-border-thickness, var(--spectrum-swatch-border-thickness)) var(--highcontrast-swatch-border-color, var(--mod-swatch-border-color, var(--spectrum-swatch-border-color)));
297+
}
298+
}
299+
}
300+
286301
.spectrum-Swatch-mixedValueIcon {
287302
display: none;
288303
pointer-events: none;

0 commit comments

Comments
 (0)