Skip to content

Commit

Permalink
update value to match spec and reduce max specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jan 21, 2020
1 parent 9c3bf44 commit aa4fe26
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
14 changes: 4 additions & 10 deletions packages/material-ui/src/TableRow/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,11 @@ export const styles = theme => ({
verticalAlign: 'middle',
// We disable the focus ring for mouse, touch and keyboard users.
outline: 0,
'&$selected': {
backgroundColor:
theme.palette.type === 'light'
? fade(theme.palette.secondary.main, 0.04)
: 'rgba(255, 255, 255, 0.08)',
'&$hover:hover': {
backgroundColor: theme.palette.action.hover,
},
'&$hover:not($selected):hover': {
backgroundColor:
theme.palette.type === 'light'
? theme.palette.action.hover
: 'rgba(255, 255, 255, 0.14)',
'&$selected,&$selected:hover': {
backgroundColor: fade(theme.palette.secondary.main, theme.palette.action.selectedOpacity),
},
},
/* Pseudo-class applied to the root element if `selected={true}`. */
Expand Down
14 changes: 8 additions & 6 deletions packages/material-ui/src/styles/createPalette.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ export const light = {
// The color of an active action like an icon button.
active: 'rgba(0, 0, 0, 0.54)',
// The color of an hovered action.
hover: 'rgba(0, 0, 0, 0.08)',
hoverOpacity: 0.08,
hover: 'rgba(0, 0, 0, 0.04)',
hoverOpacity: 0.04,
// The color of a selected action.
selected: 'rgba(0, 0, 0, 0.14)',
selected: 'rgba(0, 0, 0, 0.08)',
selectedOpacity: 0.08,
// The color of a disabled action.
disabled: 'rgba(0, 0, 0, 0.26)',
// The background color of a disabled action.
Expand All @@ -60,9 +61,10 @@ export const dark = {
},
action: {
active: common.white,
hover: 'rgba(255, 255, 255, 0.1)',
hoverOpacity: 0.1,
selected: 'rgba(255, 255, 255, 0.2)',
hover: 'rgba(255, 255, 255, 0.08)',
hoverOpacity: 0.08,
selected: 'rgba(255, 255, 255, 0.16)',
selectedOpacity: 0.16,
disabled: 'rgba(255, 255, 255, 0.3)',
disabledBackground: 'rgba(255, 255, 255, 0.12)',
},
Expand Down

0 comments on commit aa4fe26

Please sign in to comment.