From 7d3372c117d9811a462999090d65ce02de7b24e1 Mon Sep 17 00:00:00 2001 From: malegre Date: Tue, 6 Feb 2024 18:06:29 -0300 Subject: [PATCH] feat(table): fixs from comments --- src/theme/components/table.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/theme/components/table.js b/src/theme/components/table.js index 30ec497..6356c53 100644 --- a/src/theme/components/table.js +++ b/src/theme/components/table.js @@ -7,9 +7,10 @@ const baseStyles = { } }; -const stickyTable = { +const fixedFirstColumn = { position: 'sticky', - left: '0' + left: '0', + backgroundColor: 'brand.white' }; const table = { @@ -44,8 +45,7 @@ const table = { ...baseStyles, tr: { '& th:first-of-type': { - ...stickyTable, - backgroundColor: 'brand.white' + ...fixedFirstColumn }, '&:nth-of-type(even) td:first-of-type ': { backgroundColor: 'brand.neutral50' @@ -57,7 +57,7 @@ const table = { td: { '&:first-of-type': { - ...stickyTable + ...fixedFirstColumn } } }