From b14ce1fd3555a961717fd8abc43890c6bf5bfcfe Mon Sep 17 00:00:00 2001 From: Martin Rohrmeier Date: Thu, 16 Jan 2025 13:46:31 +0100 Subject: [PATCH] fix(react): replace first-child pseudo class --- src/components/basic/CategoryDivider/index.tsx | 2 +- src/components/basic/StaticTable/style.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/basic/CategoryDivider/index.tsx b/src/components/basic/CategoryDivider/index.tsx index ca71c00c..c14453a9 100644 --- a/src/components/basic/CategoryDivider/index.tsx +++ b/src/components/basic/CategoryDivider/index.tsx @@ -47,7 +47,7 @@ export const CategoryDivider = ({ display: 'flex', marginBottom: '52px', marginTop: '52px', - '&:first-child': { + '&:first-of-type': { marginTop: '0', }, }} diff --git a/src/components/basic/StaticTable/style.scss b/src/components/basic/StaticTable/style.scss index 11a36d9a..e0123297 100644 --- a/src/components/basic/StaticTable/style.scss +++ b/src/components/basic/StaticTable/style.scss @@ -53,7 +53,7 @@ td { border-bottom: 5px solid #e0e1e2; padding: 10px 15px; - :first-child { + :first-of-type { border-top: 1px solid #e0e1e2; } }