Skip to content

Commit aac9f6d

Browse files
committed
fix: change default border radius to 6px * 3
1 parent 427bcc7 commit aac9f6d

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

src/components/content/Skeleton/Skeleton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const LAYOUT_MAP = {
7373
<Placeholder
7474
key={i}
7575
isStatic={isStatic}
76-
radius="1x"
76+
radius="1r"
7777
width="20x"
7878
height="12x"
7979
flexGrow={1}

src/components/fields/RadioGroup/RadioGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const RadioGroupElement = tasty({
5151
'horizontal & solid': 'row',
5252
},
5353
gap: {
54-
'': '1x',
54+
'': '.75x',
5555
solid: 0,
5656
},
5757
whiteSpace: 'nowrap',

src/components/organisms/Modal/Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export function Modal(allProps: CubeModalProps) {
207207
padding="0"
208208
shadow={true}
209209
border={false}
210-
radius="1.5r"
210+
radius="1x"
211211
width={`288px (100% - 32px) ${
212212
typeof width === 'number' ? `${width}px` : width || '360px'
213213
}`}

src/components/overlays/Dialog/Dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ const DialogElement = tasty({
4848
gap: 0,
4949
flow: 'column',
5050
radius: {
51-
'': '2r',
52-
'[data-type="tray"]': '2r top',
51+
'': '@modal-radius',
52+
'[data-type="tray"]': '@modal-radius top',
5353
'[data-type="fullscreenTakeover"] | [data-type="panel"]': '0r',
5454
},
5555
fill: '#white',

src/components/pickers/Menu/styled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const StyledMenu = tasty({
2626
'': '#dark-05',
2727
section: '',
2828
},
29-
radius: '(1r + .5x + 1bw)',
29+
radius: '@modal-radius',
3030
boxShadow: {
3131
'': '',
3232
popover: '0px 5px 15px #dark.05',

src/tokens.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const TOKENS = {
4343
'outline-width': 'calc(1rem / 16 * 3)',
4444
'border-width': '1px',
4545
radius: '6px',
46+
'modal-radius': '(1r + .5x + 1bw)',
4647
'leaf-sharp-radius': '0px',
4748
'fade-width': '32px',
4849
transition: '80ms',

0 commit comments

Comments
 (0)