Skip to content

Commit

Permalink
feat(table): fixs from comments
Browse files Browse the repository at this point in the history
  • Loading branch information
malegreIndec committed Feb 6, 2024
1 parent 15dbaea commit 7d3372c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/theme/components/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ const baseStyles = {
}
};

const stickyTable = {
const fixedFirstColumn = {
position: 'sticky',
left: '0'
left: '0',
backgroundColor: 'brand.white'
};

const table = {
Expand Down Expand Up @@ -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'
Expand All @@ -57,7 +57,7 @@ const table = {

td: {
'&:first-of-type': {
...stickyTable
...fixedFirstColumn
}
}
}
Expand Down

0 comments on commit 7d3372c

Please sign in to comment.