Skip to content

Commit 613d17b

Browse files
author
ShtykovAlexander
authored
fix: fix checkbox nowrap prop (8base#406)
* fix: fix checkbox nowrap prop
1 parent 48d87a2 commit 613d17b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/components/Checkbox/Checkbox.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const common = () => (
7777
<Checkbox label="With error" checked hasError />
7878
<Checkbox label="With disabled" checked disabled />
7979
<Container>
80-
<Checkbox label="With overflow" checked />
80+
<Checkbox label="With overflow" nowrap checked />
8181
</Container>
8282
<Checkbox label="With indeterminate" indeterminate />
8383
</Column>

src/components/Checkbox/Checkbox.theme.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,15 @@ const [CheckboxTextTag, themeText] = createThemeTag(`${name}Text`, ({ FONTS }: *
6767
root: {
6868
paddingLeft: '12px',
6969
cursor: 'pointer',
70-
overflow: 'hidden',
71-
textOverflow: 'ellipsis',
72-
whiteSpace: 'nowrap',
7370

7471
...FONTS.BODY_2,
7572
},
7673

7774
modifiers: {
7875
nowrap: {
7976
whiteSpace: 'nowrap',
77+
overflow: 'hidden',
78+
textOverflow: 'ellipsis',
8079
},
8180
},
8281
}));

0 commit comments

Comments
 (0)