Skip to content

Commit

Permalink
Merge pull request #889 from finos/selection-styling-fix
Browse files Browse the repository at this point in the history
Fix selection styling on `@finos/perspective-viewer-hypergrid`
  • Loading branch information
texodus authored Jan 30, 2020
2 parents 3d2afcd + ef34e3e commit 4504cd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/perspective-viewer-hypergrid/src/js/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ properties.add_fonts({
columnHeaderFont: `${title}-header`,
columnHeaderForegroundSelectionFont: `${title}-header`,
foregroundSelectionFont: `${title}-header`,
treeHeaderForegroundSelectionFont: [`${title}-tree-header-selection`, `${title}-header`],
rowHeaderFont: title,
treeHeaderFont: title
});
Expand All @@ -26,8 +27,8 @@ properties.add_styles({
treeHeaderBackgroundColor: `${title}-tree-header--background`,
backgroundColor: `${title}--background`,
treeHeaderColor: `${title}-tree-header--color`,
treeHeaderForegroundSelectionColor: `${title}-tree-header-selection--color`,
treeHeaderBackgroundSelectionColor: `${title}-tree-header-selection--background`,
treeHeaderForegroundSelectionColor: [`${title}-tree-header-selection--color`, `${title}--color`],
treeHeaderBackgroundSelectionColor: [`${title}-tree-header-selection--background`, `${title}-selection--background`],
backgroundSelectionColor: `${title}-selection--background`,
foregroundSelectionColor: [`${title}--color`, `color`],
borderBottom: `${title}--border-bottom-color`,
Expand Down
4 changes: 2 additions & 2 deletions packages/perspective-viewer/src/themes/material.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ perspective-viewer, .perspective-viewer-material{

--hypergrid-positive--color: #1078d1;
--hypergrid-negative--color: #de3838;

--hypergrid-selection--background: rgba(0, 0, 0, 0.1);
}

.perspective-viewer-material-base(){
Expand Down Expand Up @@ -97,7 +99,5 @@ perspective-viewer, .perspective-viewer-material{
--hypergrid--font-family: "Open Sans";
--hypergrid-header--font-family: "Open Sans";

--hypergrid-selection--background: rgba(0, 0, 0, 0.1);

--d3fc-treedata-axis--lines: none;
}

0 comments on commit 4504cd6

Please sign in to comment.