Skip to content

Commit

Permalink
Use nth-of-type instead of nth-child
Browse files Browse the repository at this point in the history
  • Loading branch information
SalamaGofore committed Apr 16, 2024
1 parent dcacdda commit f831e3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/table/ListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const StyledCell = styled(TableCell)(
const StyledRow = styled(TableRow)(
{
borderSpacing: '0px',
'&:nth-child(even)': {
'&:nth-of-type(even)': {
backgroundColor: '#f5f5f5'
},
'&:hover': {
Expand Down
2 changes: 1 addition & 1 deletion src/app/haku/[oid]/hakukohde-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const StyledItem = styled('div')({
fontWeight: 500
},

'&:nth-child(even)': {
'&:nth-of-type(even)': {
backgroundColor: '#f5f5f5'
},
'&:hover': {
Expand Down

0 comments on commit f831e3d

Please sign in to comment.