Skip to content

Commit

Permalink
fix table-row hover style
Browse files Browse the repository at this point in the history
  • Loading branch information
natac13 committed Jan 30, 2021
1 parent 26e61e6 commit f217718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/material-ui/src/TableRow/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { alpha } from '../styles/colorManipulator';

import useThemeProps from '../styles/useThemeProps';
import experimentalStyled from '../styles/experimentalStyled';
import { getTableRowUtilityClass } from './tableRowClasses';
import tableRowClasses, { getTableRowUtilityClass } from './tableRowClasses';

const overridesResolver = (props, styles) => {
const { styleProps } = props;
Expand Down Expand Up @@ -44,7 +44,7 @@ const TableRowRoot = experimentalStyled(
verticalAlign: 'middle',
// We disable the focus ring for mouse, touch and keyboard users.
outline: 0,
'&.Mui-hover:hover': {
[`&.${tableRowClasses.hover}:hover`]: {
backgroundColor: theme.palette.action.hover,
},
'&.Mui-selected, &.Mui-selected:hover': {
Expand Down

0 comments on commit f217718

Please sign in to comment.