Skip to content

Commit ad55f41

Browse files
authored
chore: migrate to scrollbar style (#679)
1 parent 14af70d commit ad55f41

File tree

9 files changed

+22
-8
lines changed

9 files changed

+22
-8
lines changed

.changeset/plenty-wasps-tease.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": patch
3+
---
4+
5+
Migrate to `scrollbar` style.

src/components/content/Content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ContentElement = tasty({
2525
flow: 'column',
2626
gap: '2x',
2727
overflow: 'auto',
28-
styledScrollbar: true,
28+
scrollbar: 'styled',
2929
},
3030
});
3131

src/components/content/CopySnippet/CopySnippet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const StyledBlock = tasty({
3838
'': 'initial',
3939
nowrap: 'nowrap',
4040
},
41-
styledScrollbar: true,
41+
scrollbar: 'styled',
4242
padding: '1.125x 1.5x',
4343
fade: {
4444
'': 'right 2x',

src/components/content/PrismCode/PrismCode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const PreElement = tasty({
2424
margin: 0,
2525
padding: 0,
2626
overflow: 'auto',
27-
styledScrollbar: true,
27+
scrollbar: 'styled',
2828

2929
Code: {
3030
display: 'block',

src/components/fields/Select/Select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ const ListBoxElement = tasty({
188188
fill: '#white',
189189
shadow: '0px 4px 16px #shadow',
190190
height: 'initial 30x',
191-
overflow: 'hidden auto',
192-
styledScrollbar: true,
191+
overflow: 'clip auto',
192+
scrollbar: 'styled',
193193
},
194194
});
195195

src/components/organisms/FileTabs/FileTabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const TabsPanelElement = tasty(Space, {
4545
gap: '.5x',
4646
flexShrink: 0,
4747
whiteSpace: 'nowrap',
48-
styledScrollbar: true,
48+
scrollbar: 'styled',
4949
padding: '1ow 1ow 0 1ow',
5050
fade: {
5151
'': false,

src/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const StyledDialogContent = tasty(Flex, {
3737
styles: {
3838
flow: 'column',
3939
placeItems: 'start start',
40-
styledScrollbar: true,
40+
scrollbar: 'styled',
4141
height: '100%',
4242
border: '1bw solid #border',
4343
radius: '0.5x',

src/components/pickers/Menu/styled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const StyledMenu = tasty({
3131
'': '',
3232
popover: '0px 5px 15px #dark.05',
3333
},
34-
styledScrollbar: true,
34+
scrollbar: 'styled',
3535
},
3636
});
3737

src/tasty/styles/types.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ export interface StylesInterface
5757
* @deprecated Use `flow` style instead.
5858
*/
5959
flexDirection: CSSProperties['flexDirection'];
60+
/**
61+
* @deprecated Use `placeContent`, `placeItems`, `gridColumns`, `gridRows`, and `gridTemplate` styles instead.
62+
*/
63+
grid: CSSProperties['grid'];
64+
/**
65+
* @deprecated Use `flexShrink`, `flexGrow`, and `flexBasis` styles instead.
66+
*/
67+
flex: CSSProperties['flex'];
6068
/** Set the background color of the element.
6169
* ```
6270
* fill="#{name_of_the_color}"
@@ -92,6 +100,7 @@ export interface StylesInterface
92100
*/
93101
reset?: 'input' | 'button';
94102
/**
103+
* @deprecated Use `scrollbar` style instead.
95104
* Whether the element has styled scrollbar.
96105
*/
97106
styledScrollbar?: boolean;

0 commit comments

Comments
 (0)