Skip to content

Commit

Permalink
HPCC-31052 ECL Watch metrics timeline darkmode issue
Browse files Browse the repository at this point in the history
Background is stuck on white.
Tweaked grid highlighting and border for darkmode.

Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Jan 2, 2024
1 parent 25fd4c4 commit cdb30b0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
5 changes: 5 additions & 0 deletions esp/src/eclwatch/css/hpcc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1952,4 +1952,9 @@ span.dijitReset.dijitInline.dijitIcon.fa.disabled {
.flat .p-TabBar-tab.p-mod-current {
background-color: var(--colorNeutralBackground1);
border-bottom-color: var(--colorNeutralStroke1);
}

.flat .chart_Axis .axis .tick line,
.flat .chart_Axis .axis path.domain {
stroke: var(--colorNeutralStroke1);
}
40 changes: 15 additions & 25 deletions esp/src/src-react/components/DojoGrid.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,28 @@
:root {
--header-font-size: 14px;
--row-font-size: 13px;
--grid-background: transparent;
--grid-selectionForeground: rgb(50, 49, 48);
--grid-selectionForegroundDark: rgb(225, 225, 225);
--grid-selectionForgroundHoverDark: rgb(225, 225, 225);
--grid-selectionBackground: rgb(235, 235, 235);
--grid-selectionBackgroundDark: rgb(47, 47, 47);
--grid-hoverBackground: rgb(215, 237, 248);
--grid-hoverBackgroundDark: rgb(49, 49, 49);
--grid-selectionHoverBackground: rgb(227, 225, 223);
--grid-selectionHoverBackgroundDark: rgb(176, 176, 176);
}

.flat .dojo-component.dgrid.dgrid-grid {
border-style: hidden;
}

.flat .dgrid-header-row {
background-color: var(--grid-background);
background-color: transparent;
font-size: var(--header-font-size);
line-height: 32px;
}

.flat .dgrid-header-row .dgrid-cell {
border-bottom-color: var(--grid-selectionBackground);
border-bottom-color: var(--colorNeutralBackground1Selected);
}

.flat .dgrid-header-row:focus {
outline-width: 0px;
}

.flat .dgrid-header.dgrid-header-scroll {
background-color: var(--grid-background);
background-color: transparent;
}

.flat .dgrid-row {
Expand All @@ -41,34 +31,34 @@
}

.flat .dgrid-row:hover {
background-color: var(--grid-hoverBackground);
background-color: var(--colorNeutralBackground1Hover);
}

.flat-dark .dgrid-row:hover {
background-color: var(--grid-hoverBackgroundDark);
background-color: var(--colorNeutralBackground1Hover);
}

.flat .dgrid-row.dgrid-selected:hover {
background-color: var(--grid-selectionHoverBackground);
background-color: var(--colorNeutralBackground1Hover);
}

.flat-dark .dgrid-row.dgrid-selected:hover {
background-color: var(--grid-selectionHoverBackgroundDark);
background-color: var(--colorNeutralBackground1Hover);
}

.flat .dgrid-row.dgrid-selected {
background-color: var(--grid-selectionBackground);
color: var(--grid-selectionForeground);
border-color: var(--grid-background);
background-color: var(--colorNeutralBackground1Selected);
color: var(--colorNeutralForeground1Selected);
border-color: transparent;
}

.flat-dark .dgrid-row.dgrid-selected {
background-color: var(--grid-selectionBackgroundDark);
color: var(--grid-selectionForegroundDark);
background-color: var(--colorNeutralBackground1Selected);
color: var(--colorNeutralForeground1Selected);
}

.flat .dgrid-cell {
border-color: var(--grid-background);
border-color: transparent;
}

.flat .dgrid-focus:focus {
Expand All @@ -81,7 +71,7 @@
}

.flat .dgrid-footer {
background-color: var(--grid-background);
background-color: var(--colorNeutralStroke1);
}

.flat .dgrid-pagination {
Expand Down Expand Up @@ -109,7 +99,7 @@
.flat .dgrid-pagination .dgrid-navigation .dgrid-page-input {
padding: 0;
margin: 0;
background: var(--grid-background);
background: var(--colorNeutralStroke1);
border-style: solid;
border-width: 1px;
color: inherit;
Expand Down

0 comments on commit cdb30b0

Please sign in to comment.