From 0323d96b4c042b927034237481a010f909972fc8 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sun, 24 Jan 2021 12:52:21 +0100 Subject: [PATCH] Row classes overrides for tables (#4472) * Row classes overrides for tables * Adjust faint highlight --- packages/react-components/src/Table/Body.tsx | 7 ++----- packages/react-components/src/styles/index.ts | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/react-components/src/Table/Body.tsx b/packages/react-components/src/Table/Body.tsx index 5f471e8b58..46fda7bb67 100644 --- a/packages/react-components/src/Table/Body.tsx +++ b/packages/react-components/src/Table/Body.tsx @@ -177,11 +177,8 @@ export default React.memo(styled(Body)(({ theme }: ThemeProps) => ` } tr { - // &:nth-child(odd) { - // background: #faf8f6; - // } - - &:nth-child(odd) { + &:nth-child(odd):not(.isEven), + &:nth-child(even).isOdd { background: ${theme.bgTable}; } diff --git a/packages/react-components/src/styles/index.ts b/packages/react-components/src/styles/index.ts index 5b6c66a7ee..d51518ae1f 100644 --- a/packages/react-components/src/styles/index.ts +++ b/packages/react-components/src/styles/index.ts @@ -76,7 +76,7 @@ export default createGlobalStyle(({ theme, uiHighlight }: Pr } .highlight--bg-faint:before { - opacity: 0.025; + opacity: 0.0375; } .highlight--bg-light:before {