Skip to content

Commit f397cf2

Browse files
authored
fix(Panel): use native scroll (#677)
1 parent 3d31469 commit f397cf2

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.changeset/lovely-lies-retire.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+
Use native scrolls in Panel by default.

.changeset/silly-dragons-buy.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+
Apply various fixes to the new scrollbar style.

src/components/layout/Panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const PanelInnerElement = tasty({
5252
right: 0,
5353
bottom: 0,
5454
overflow: 'auto',
55-
styledScrollbar: true,
55+
scrollbar: 'thin #dark.2',
5656
gridColumns: 'minmax(100%, 100%)',
5757
gridRows: {
5858
'': 'initial',

tasty.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ const StyledButton = tasty(Button, {
283283

284284
- Use the `@` prefix to reference custom properties or tokens defined in your theme or component.
285285
- Example: `padding: '@local-padding'` uses the value of the `@local-padding` property.
286+
- Use brackets to define the fallback value: `padding: '@(local-padding, 1x)'`.
286287
- Define custom tokens in the `styles` object:
287288

288289
```jsx

0 commit comments

Comments
 (0)