summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-03-12 15:01:54 +0000
committerPhil Hughes <me@iamphill.com>2018-03-12 15:01:54 +0000
commitcc72e1bc5be82826dbea7d9cd12be9a9b0a7494c (patch)
tree26e017ab0ea80082fee1edb628db0a114fea415b
parent30bebe049ddf9ecbf6f7b3dbd0b53209e616823c (diff)
parent91e87ab5423367dba337c217e488dd8f29370767 (diff)
downloadgitlab-ce-cc72e1bc5be82826dbea7d9cd12be9a9b0a7494c.tar.gz
Merge branch '42579-fix-sidebar-dropdown-hover-style' into 'master'
Resolve "Hover style for sidebar dropdowns is wrong" Closes #42579 See merge request gitlab-org/gitlab-ce!17519
-rw-r--r--app/assets/stylesheets/pages/issuable.scss40
-rw-r--r--changelogs/unreleased/42579-fix-sidebar-dropdown-hover-style.yml5
2 files changed, 32 insertions, 13 deletions
diff --git a/app/assets/stylesheets/pages/issuable.scss b/app/assets/stylesheets/pages/issuable.scss
index 4c9732c26d9..e21a9f0afc9 100644
--- a/app/assets/stylesheets/pages/issuable.scss
+++ b/app/assets/stylesheets/pages/issuable.scss
@@ -137,12 +137,22 @@
z-index: 200;
overflow: hidden;
- a:not(.btn-retry),
- .btn-link {
+ a:not(.btn) {
color: inherit;
+
+ &:hover {
+ color: $gl-link-hover-color;
+
+ .avatar {
+ border-color: rgba($avatar-border, .2);
+ }
+
+ }
+
}
.btn-link {
+ color: inherit;
outline: none;
}
@@ -214,7 +224,7 @@
&:hover {
text-decoration: underline;
- color: $md-link-color;
+ color: $gl-link-hover-color;
}
}
}
@@ -486,16 +496,6 @@
}
}
- a:not(.btn-retry) {
- &:hover {
- color: $md-link-color;
-
- .avatar {
- border-color: rgba($avatar-border, .2);
- }
- }
- }
-
.dropdown-menu-toggle {
width: 100%;
padding-top: 6px;
@@ -503,6 +503,20 @@
.dropdown-menu {
width: 100%;
+
+ /*
+ * Overwrite hover style for dropdown items, so that they are not blue
+ * This should be removed during dev of https://gitlab.com/gitlab-org/gitlab-ce/issues/44040
+ */
+ li a {
+ &:hover,
+ &:active,
+ &:focus,
+ &.is-focused {
+ @include dropdown-item-hover;
+ }
+ }
+
}
}
diff --git a/changelogs/unreleased/42579-fix-sidebar-dropdown-hover-style.yml b/changelogs/unreleased/42579-fix-sidebar-dropdown-hover-style.yml
new file mode 100644
index 00000000000..c0a247dc895
--- /dev/null
+++ b/changelogs/unreleased/42579-fix-sidebar-dropdown-hover-style.yml
@@ -0,0 +1,5 @@
+---
+title: Fix hover style of dropdown items in the right sidebar
+merge_request: 17519
+author:
+type: fixed