summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/dropdowns.scss
diff options
context:
space:
mode:
authorwinh <winnie@gitlab.com>2017-08-30 09:19:44 +0200
committerWinnie Hellmann <winnie@gitlab.com>2017-09-06 10:29:06 +0200
commit37c76cecb94518245179369d1762be8c3b6799ca (patch)
tree5cb779894afeda4e47dbf8db772628c3eb66c071 /app/assets/stylesheets/framework/dropdowns.scss
parent6ec157264d939ca5c0a1b6c373d76aaf6edeeef1 (diff)
downloadgitlab-ce-37c76cecb94518245179369d1762be8c3b6799ca.tar.gz
Restore droplab item style for keyboard navigationwinh-filter-dropdowns-keyboard-selection
Diffstat (limited to 'app/assets/stylesheets/framework/dropdowns.scss')
-rw-r--r--app/assets/stylesheets/framework/dropdowns.scss11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/dropdowns.scss b/app/assets/stylesheets/framework/dropdowns.scss
index 6b21def33a6..c2075f281f7 100644
--- a/app/assets/stylesheets/framework/dropdowns.scss
+++ b/app/assets/stylesheets/framework/dropdowns.scss
@@ -733,6 +733,11 @@
overflow: hidden;
}
+@mixin dropdown-item-hover {
+ background-color: $dropdown-item-hover-bg;
+ color: $gl-text-color;
+}
+
// TODO: change global style and remove mixin
@mixin new-style-dropdown($selector: '') {
#{$selector}.dropdown-menu,
@@ -759,6 +764,10 @@
padding: 8px 16px;
}
+ &.droplab-item-active button {
+ @include dropdown-item-hover;
+ }
+
a,
button,
.menu-item {
@@ -778,6 +787,8 @@
&:hover,
&:active,
&:focus {
+ @include dropdown-item-hover;
+
background-color: $dropdown-item-hover-bg;
color: $gl-text-color;