diff --git a/src/components/TableBodyCell.js b/src/components/TableBodyCell.js index 63b76ccfd..f4229b84b 100644 --- a/src/components/TableBodyCell.js +++ b/src/components/TableBodyCell.js @@ -36,7 +36,7 @@ const useStyles = makeStyles({ name: 'MUIDataTableBodyCell' })(theme => ({ '&:last-child': { borderBottom: 'none', }, - '&:nth-last-child(2)': { + '&:nth-last-of-type(2)': { borderBottom: 'none', }, }, @@ -50,7 +50,7 @@ const useStyles = makeStyles({ name: 'MUIDataTableBodyCell' })(theme => ({ '&:last-child': { borderBottom: 'none', }, - '&:nth-last-child(2)': { + '&:nth-last-of-type(2)': { borderBottom: 'none', }, }, diff --git a/src/components/TablePagination.js b/src/components/TablePagination.js index 3c39acb8a..55bf0ab4a 100644 --- a/src/components/TablePagination.js +++ b/src/components/TablePagination.js @@ -21,7 +21,7 @@ const useStyles = makeStyles({ name: 'MUIDataTablePagination' })(theme => ({ selectRoot: {}, '@media screen and (max-width: 400px)': { toolbar: { - '& span:nth-child(2)': { + '& span:nth-of-type(2)': { display: 'none', }, },