Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintain selected row’s background color in row selection #556

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading