Skip to content

Commit e870c8f

Browse files
committed
Change ":nth-child" to ":nth-of-type"
1 parent 452ca69 commit e870c8f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/TableBodyCell.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const useStyles = makeStyles({ name: 'MUIDataTableBodyCell' })(theme => ({
3636
'&:last-child': {
3737
borderBottom: 'none',
3838
},
39-
'&:nth-last-child(2)': {
39+
'&:nth-last-of-type(2)': {
4040
borderBottom: 'none',
4141
},
4242
},
@@ -50,7 +50,7 @@ const useStyles = makeStyles({ name: 'MUIDataTableBodyCell' })(theme => ({
5050
'&:last-child': {
5151
borderBottom: 'none',
5252
},
53-
'&:nth-last-child(2)': {
53+
'&:nth-last-of-type(2)': {
5454
borderBottom: 'none',
5555
},
5656
},

src/components/TablePagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const useStyles = makeStyles({ name: 'MUIDataTablePagination' })(theme => ({
2121
selectRoot: {},
2222
'@media screen and (max-width: 400px)': {
2323
toolbar: {
24-
'& span:nth-child(2)': {
24+
'& span:nth-of-type(2)': {
2525
display: 'none',
2626
},
2727
},

0 commit comments

Comments
 (0)