Skip to content

Commit

Permalink
[@mantine/core] ScrollArea: Fix type auto leaving space for bottom ho…
Browse files Browse the repository at this point in the history
…rizontal scrollbar (#1654)

* [@mantine/core] Select: only use open/close callback when value changes

* [@mantine/core] Select: do not use early return

* [@mantine/core] ScrolLArea: display none if data state is hidden, change #fff to theme.white
  • Loading branch information
wes337 authored Jun 26, 2022
1 parent 9166568 commit b4e1217
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default createStyles(
[`& .${getRef('thumb')}`]: {
backgroundColor:
theme.colorScheme === 'dark'
? theme.fn.rgba('#ffffff', 0.5)
? theme.fn.rgba(theme.white, 0.5)
: theme.fn.rgba(theme.black, 0.5),
},
},
Expand All @@ -50,6 +50,7 @@ export default createStyles(
},

'&[data-state="hidden"]': {
display: 'none',
opacity: 0,
},
},
Expand All @@ -59,7 +60,7 @@ export default createStyles(
flex: 1,
backgroundColor:
theme.colorScheme === 'dark'
? theme.fn.rgba('#ffffff', 0.4)
? theme.fn.rgba(theme.white, 0.4)
: theme.fn.rgba(theme.black, 0.4),
borderRadius: scrollbarSize,
position: 'relative',
Expand Down

0 comments on commit b4e1217

Please sign in to comment.