Skip to content

Commit

Permalink
Maintain selected row’s background color in row selection (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohdsayed authored Mar 13, 2024
1 parent 3814d60 commit d70eaae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const BodyRow = ({
? 'dark:bg-flagged-row-even-dark bg-flagged-row-even-light'
: 'dark:bg-flagged-row-odd-dark bg-flagged-row-odd-light'
: isRowFocused
? 'bg-gainsboro dark:bg-outer-space'
? 'bg-selection-yellow-dark dark:bg-selection-yellow-light'
: 'bg-royal-blue text-white dark:bg-medium-persian-blue dark:text-chinese-silver'),
isDomainInAllowList &&
!isBlocked &&
Expand All @@ -84,7 +84,7 @@ const BodyRow = ({
? 'dark:bg-jungle-green-dark bg-leaf-green-dark'
: 'dark:bg-jungle-green-light bg-leaf-green-light'
: isRowFocused
? 'bg-gainsboro dark:bg-outer-space'
? 'bg-selection-green-dark dark:bg-selection-green-light'
: 'bg-royal-blue text-white dark:bg-medium-persian-blue dark:text-chinese-silver'),
cookieKey !== selectedKey &&
!isBlocked &&
Expand Down
4 changes: 4 additions & 0 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ module.exports = {
'leaf-green-dark': '#87DFB2',
'eerie-black': '#1F1F1F0F',
'light-yellow': '#FEFCE0',
'selection-green-light': '#117347',
'selection-green-dark': '#74d47e',
'selection-yellow-light': '#8b8f18',
'selection-yellow-dark': '#dbdb48',
},
borderColor: {
...colors,
Expand Down

0 comments on commit d70eaae

Please sign in to comment.