[third] Fix sticky hover background color in typeaheads.

See https://github.com/twitter/bootstrap/issues/7392.  I seem to
have fixed it with just the CSS part of their suggested patch.

To repro the bug prior to this fix, enter search, hover over a
typeahead, and then hit the up arrow key.  You'll see two items
appear to be selected.

(imported from commit 383d60a606d7c19344a326208312a1555d060877)
This commit is contained in:
Steve Howell 2013-07-25 15:19:10 -04:00
parent 647ae655b0
commit 7a3a3be7e5

View File

@ -2973,8 +2973,11 @@ table [class*=span],
}
.dropdown-menu li > a:hover,
.dropdown-menu li > a:focus,
.dropdown-submenu:hover > a {
text-decoration: none;
}
.dropdown-menu li > a:focus {
color: #ffffff;
text-decoration: none;
background-color: #0088cc;
@ -2988,8 +2991,7 @@ table [class*=span],
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
}
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover {
.dropdown-menu .active > a {
color: #ffffff;
text-decoration: none;
background-color: #0088cc;