Skip to content

Commit

Permalink
[data grid] Fix focus visible style on scrollbar (mui#12402)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored and thomasmoon committed Sep 6, 2024
1 parent 8320a44 commit f5d7f82
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const ScrollbarVertical = styled(Scrollbar)({
'calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))',
overflowY: 'auto',
overflowX: 'hidden',
// Disable focus-visible style, it's a scrollbar.
outline: 0,
'& > div': {
width: 'var(--size)',
},
Expand All @@ -59,6 +61,8 @@ const ScrollbarHorizontal = styled(Scrollbar)({
height: 'var(--size)',
overflowY: 'hidden',
overflowX: 'auto',
// Disable focus-visible style, it's a scrollbar.
outline: 0,
'& > div': {
height: 'var(--size)',
},
Expand Down

0 comments on commit f5d7f82

Please sign in to comment.