From e870c8fe165ca9a11aac4893c0fd9a9e47e710dd Mon Sep 17 00:00:00 2001 From: Woo Dohyeong <wdh2100@gmail.com> Date: Sun, 20 Feb 2022 18:56:59 +0900 Subject: [PATCH] Change ":nth-child" to ":nth-of-type" --- src/components/TableBodyCell.js | 4 ++-- src/components/TablePagination.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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', }, },