Answers for "how to apply hover and focus styles on style object material ui"

5

material-ui hover style

const styles = theme => ({
  ...
  tr: {
    background: "#f1f1f1",
    '&:hover': {
       background: "#f00",
    },
  },
  ...
});

return <TableRow className={props.classes.tr} ...>
Posted by: Guest on August-05-2020
0

how to apply hover and focus styles on style object material ui

const styles = theme => ({
  ...
  tr: {
    background: "#f1f1f1",
    '&:hover,&:focus': {
       background: "#f00",
    },
  },
  ...
});

return <TableRow className={props.classes.tr} ...>
Posted by: Guest on October-04-2021

Code answers related to "how to apply hover and focus styles on style object material ui"

Code answers related to "Javascript"

Browse Popular Code Answers by Language