Skip to content

Commit

Permalink
update separator color on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
KenanYusuf committed Sep 4, 2024
1 parent 04762e6 commit 1b18a02
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/x-data-grid/src/components/containers/GridRootStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,16 +436,17 @@ export const GridRootStyles = styled('div', {
[`& .${c['columnSeparator--resizable']}`]: {
cursor: 'col-resize',
touchAction: 'none',
[`&.${c['columnSeparator--resizing']}`]: {
color: (t.vars || t).palette.primary.main,
},
// Always appear as draggable on touch devices
'@media (hover: none)': {
[`& .${c.iconSeparator} rect`]: separatorIconDragStyles,
color: borderColor,
},
[`&:hover, &.${c['columnSeparator--resizing']}`]: {
color: (t.vars || t).palette.primary.main,
[`& .${c.iconSeparator} rect`]: separatorIconDragStyles,
'@media (hover: none)': {
color: borderColor,
'@media (hover: hover)': {

This comment has been minimized.

Copy link
@KenanYusuf

KenanYusuf Sep 4, 2024

Author Member

This prevents the color getting stuck as blue after resizing on touch devices

'&:hover': {
color: (t.vars || t).palette.primary.main,
[`& .${c.iconSeparator} rect`]: separatorIconDragStyles,
},
},
'& svg': {
Expand Down

0 comments on commit 1b18a02

Please sign in to comment.