Skip to content

Commit

Permalink
Update cell hover styles, fixing hidden checkboxes
Browse files Browse the repository at this point in the history
* add cell horizontal borders instead of updating cell background color
  • Loading branch information
julieg18 committed Aug 16, 2022
1 parent b803ab7 commit dd32e71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
24 changes: 11 additions & 13 deletions webview/src/experiments/components/table/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ $workspace-row-edge-margin: $edge-padding - $cell-padding;
background-color: $row-hover-background-color;
}

.unselectedExperiment .experimentCell:hover & {
background-color: $cell-hover-background-color;
}

.workspaceWithChanges.unselectedExperiment & {
border: 1px solid $changed-color;
}
Expand All @@ -162,12 +158,6 @@ $workspace-row-edge-margin: $edge-padding - $cell-padding;
border-bottom-color: $row-hover-background-color;
}

.runningExperiment .experimentCell:hover & {
background-color: $cell-hover-background-color;
border-left-color: $cell-hover-background-color;
border-bottom-color: $cell-hover-background-color;
}

.workspaceWithChanges.runningExperiment & {
border-right-color: $changed-color;
border-top-color: $changed-color;
Expand Down Expand Up @@ -279,9 +269,17 @@ $workspace-row-edge-margin: $edge-padding - $cell-padding;
background-color: $row-hover-background-color;
}

.td:hover:not(.experimentCell),
.experimentCell:hover:before {
background-color: $cell-hover-background-color;
.td:hover {
border-right: $row-border;
border-left: $row-border;

&:first-child {
border-left: none;
}

&:last-child {
border-right: none;
}
}
}

Expand Down
1 change: 0 additions & 1 deletion webview/src/shared/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ $meta-cell-color: var(--vscode-descriptionForeground);

$hover-background-color: var(--vscode-list-hoverBackground);
$row-hover-background-color: var(--vscode-list-hoverBackground);
$cell-hover-background-color: var(--vscode-dropdown-background);

$accent-color: var(--button-primary-background);

Expand Down

0 comments on commit dd32e71

Please sign in to comment.