Skip to content

Commit 4d53eb5

Browse files
committed
fix: change default border radius to 6px
1 parent 4496c1f commit 4d53eb5

File tree

8 files changed

+12
-7
lines changed

8 files changed

+12
-7
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/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/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',

src/components/overlays/Notification/Notification.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const NotificationElement = tasty(Card, {
2424
shadow: '0 5px 15px #dark.10',
2525
border: false,
2626
margin: '1x bottom',
27-
radius: '1.5r',
27+
radius: '1x',
2828
gridColumns: 'auto 1fr auto',
2929
placeItems: 'center start',
3030
gap: '2x',

src/tokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const TOKENS = {
4242
gap: '8px',
4343
'outline-width': 'calc(1rem / 16 * 3)',
4444
'border-width': '1px',
45-
radius: '4px',
45+
radius: '6px',
4646
'leaf-sharp-radius': '0px',
4747
'fade-width': '32px',
4848
transition: '80ms',

0 commit comments

Comments
 (0)