Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Commit 4fd9f4c

Browse files
author
Andrey Okonetchnikov
committed
fix: Color swatch should have same height. Do not wrap long values
1 parent a84ffcc commit 4fd9f4c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/components/ColorSwatch.jsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,10 @@ export const ColorSwatch = ({ value, token }) => {
1212
);
1313
return (
1414
<Swatch token={token} value={value}>
15-
<div
16-
css={css({
17-
py: 5,
18-
bg: value
19-
})}
20-
/>
2115
<div
2216
css={css({
2317
p: 3,
18+
pt: 6,
2419
bg: value,
2520
overflow: "hidden"
2621
})}

src/components/SwatchValue.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ function SwatchValue({ color = "secondary", css: componentCSS, ...rest }) {
88
m: 0,
99
fontFamily: "monospace",
1010
fontSize: "xs",
11+
whiteSpace: "nowrap",
1112
color,
1213
...componentCSS
1314
})}

0 commit comments

Comments
 (0)