Skip to content

Commit 4ff6fbd

Browse files
committed
fix(core): hairline boarders for divider (#8021)
1 parent f544e69 commit 4ff6fbd

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

packages/frontend/component/src/ui/divider/divider.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ export const Divider = forwardRef<HTMLDivElement, DividerProps>(
3131
styles.divider,
3232
{
3333
[styles.verticalDivider]: orientation === 'vertical',
34-
[styles.thinner]:
35-
size === 'thinner' && orientation === 'horizontal',
36-
[styles.verticalThinner]:
37-
size === 'thinner' && orientation === 'vertical',
34+
[styles.thinner]: size === 'thinner',
3835
},
3936
className
4037
)}
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
import { cssVar } from '@toeverything/theme';
22
import { style } from '@vanilla-extract/css';
33
export const divider = style({
4-
height: '1px',
5-
backgroundColor: cssVar('borderColor'),
6-
borderRadius: '8px',
4+
borderBottom: `1px solid ${cssVar('borderColor')}`,
5+
height: 0,
76
margin: '8px 0',
87
width: '100%',
98
});
10-
export const thinner = style({
11-
height: '0.5px',
12-
});
9+
1310
export const verticalDivider = style({
14-
width: '1px',
15-
borderRadius: '8px',
11+
borderLeft: `1px solid ${cssVar('borderColor')}`,
12+
width: 0,
1613
height: '100%',
1714
margin: '0 2px',
1815
});
19-
export const verticalThinner = style({
20-
width: '0.5px',
16+
17+
export const thinner = style({
18+
borderWidth: '0.5px',
2119
});

0 commit comments

Comments
 (0)