Skip to content

Commit c091bba

Browse files
evangraykmeta-codesync[bot]
authored andcommitted
Give pinned commit actions an opaque background
Summary: D116701714 made the goto button an icon-button, but it can have a transparent background color. Let's add a non-transparent background below it to cover this. This way, when it floats on top of content, it does not overlap Reviewed By: nsblake Differential Revision: D116831121 fbshipit-source-id: 48b6663c5d97f1521f497d4536b33ad04dc83de7
1 parent e5daaa8 commit c091bba

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

addons/isl/src/CommitTreeList.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
}
120120

121121
.commit-row-selected {
122+
--commit-actions-background:
123+
linear-gradient(var(--selected-commit-background), var(--selected-commit-background)),
124+
var(--background);
125+
122126
background-color: var(--selected-commit-background);
123127
}
124128

@@ -162,6 +166,11 @@
162166
transition: opacity 0.1s;
163167
}
164168

169+
.commit:hover .commit-narrow-right-actions,
170+
.commit-narrow-right-actions:focus-within {
171+
background: var(--commit-actions-background, var(--background));
172+
}
173+
165174
.commit-tree-narrow .commit-wide-drag-target {
166175
display: none;
167176
}

0 commit comments

Comments
 (0)