Merge branch 'winh-filter-dropdowns-keyboard-selection' into 'master'

Restore droplab item style for keyboard navigation

Closes #37218

See merge request !13921
This commit is contained in:
Clement Ho 2017-09-07 18:38:50 +00:00
commit 354a12c3d1

View file

@ -734,6 +734,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,
@ -760,6 +765,10 @@
padding: 8px 16px;
}
&.droplab-item-active button {
@include dropdown-item-hover;
}
a,
button,
.menu-item {
@ -779,6 +788,8 @@
&:hover,
&:active,
&:focus {
@include dropdown-item-hover;
background-color: $dropdown-item-hover-bg;
color: $gl-text-color;