Skip to content

Commit

Permalink
Change ":nth-child" to ":nth-of-type"
Browse files Browse the repository at this point in the history
  • Loading branch information
wdh2100 committed Feb 20, 2022
1 parent 452ca69 commit e870c8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/TableBodyCell.js
Expand Up @@ -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',
},
},
Expand All @@ -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',
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/TablePagination.js
Expand Up @@ -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',
},
},
Expand Down

0 comments on commit e870c8f

Please sign in to comment.