Skip to content

Commit 7c70da6

Browse files
authored
fix: change default border radius to 6px (#556)
1 parent 4496c1f commit 7c70da6

File tree

13 files changed

+19
-15
lines changed

13 files changed

+19
-15
lines changed

.changeset/smart-deers-remember.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': minor
3+
---
4+
5+
Change default border radius to 6px.

src/components/GlobalStyles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const GlobalStylesElement = createGlobalStyle<GlobalStylesElementProps>`
252252
word-spacing: normal;
253253
word-break: normal;
254254
word-wrap: normal;
255-
border-radius: 4px;
255+
border-radius: 6px;
256256
border: none;
257257
258258
-moz-tab-size: 4;

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/Checkbox/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const CheckboxElement = tasty({
8989
styles: {
9090
display: 'grid',
9191
placeItems: 'center',
92-
radius: '.5r',
92+
radius: '.25x',
9393
fill: {
9494
'': '#white',
9595
'checked | indeterminate': '#purple-text',

src/components/fields/DatePicker/DatePickerSegment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const EditableSegmentElement = tasty({
3737
'': '#clear',
3838
':focus': '#purple',
3939
},
40-
radius: '.5r',
40+
radius: '.25x',
4141

4242
Placeholder: {
4343
opacity: '#disabled-opacity',

src/components/fields/Select/Select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const ListBoxElement = tasty({
196196
margin: '0',
197197
padding: '.5x',
198198
listStyle: 'none',
199-
radius: true,
199+
radius: '@large-radius',
200200
fill: '#white',
201201
shadow: '0px 4px 16px #shadow',
202202
height: 'initial 30x',

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+
'': '(@large-radius + 1bw)',
52+
'[data-type="tray"]': '(@large-radius + 1bw) top',
5353
'[data-type="fullscreenTakeover"] | [data-type="panel"]': '0r',
5454
},
5555
fill: '#white',

src/components/overlays/NewNotifications/Bar/FloatingNotification.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type FloatingNotificationProps = {
2222
const NotificationContainer = tasty({
2323
styles: {
2424
overflow: 'hidden',
25-
radius: '0.5x',
25+
radius: true,
2626
boxShadow: '0 0.5x 2x #shadow',
2727
pointerEvents: 'auto',
2828
},

src/components/overlays/NewNotifications/NotificationView/NotificationIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const IconPreset = tasty({
4444
success: '#success-text',
4545
danger: '#danger-text',
4646
},
47-
borderRadius: '0.5x',
47+
radius: '1r',
4848
width: '3x',
4949
height: '3x',
5050
padding: '0.5x',

0 commit comments

Comments
 (0)