(core) Fix CSS errors related to dark mode

Summary: Fixes a few cosmetic CSS bugs since dark mode landed.

Test Plan: Tested manually.

Reviewers: jarek

Reviewed By: jarek

Subscribers: jarek

Differential Revision: https://phab.getgrist.com/D3649
This commit is contained in:
George Gevoian
2022-10-03 17:05:55 -07:00
parent 303d071de1
commit 74c556ea85
8 changed files with 52 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
* add a new column, and allows removing already-added columns.
*/
import {aclSelect, cssSelect} from 'app/client/aclui/ACLSelect';
import {colors, testId} from 'app/client/ui2018/cssVars';
import {testId, theme} from 'app/client/ui2018/cssVars';
import {icon} from 'app/client/ui2018/icons';
import {Computed, dom, Observable, styled} from 'grainjs';
@@ -85,7 +85,7 @@ const cssColListWidget = styled('div', `
border: 1px solid transparent;
&:not(&-editing):hover {
border: 1px solid ${colors.darkGrey};
border: 1px solid ${theme.accessRulesColumnListBorder};
}
`);
@@ -96,9 +96,10 @@ const cssColItem = styled('div', `
border-radius: 3px;
padding-left: 6px;
padding-right: 2px;
color: ${theme.accessRulesColumnItemFg};
.${cssColListWidget.className}-editing & {
background-color: ${colors.mediumGreyOpaque};
background-color: ${theme.accessRulesColumnItemBg};
}
`);
@@ -126,10 +127,10 @@ const cssColItemIcon = styled('div', `
border-radius: 16px;
display: none;
cursor: default;
--icon-color: ${colors.slate};
--icon-color: ${theme.accessRulesColumnItemIconFg};
&:hover {
background-color: ${colors.slate};
--icon-color: ${colors.light};
background-color: ${theme.accessRulesColumnItemIconHoverBg};
--icon-color: ${theme.accessRulesColumnItemIconHoverFg};
}
.${cssColListWidget.className}-editing & {
display: flex;