aboutsummaryrefslogtreecommitdiff
path: root/less/dropdowns.less
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-06-02 16:11:35 -0700
committerJacob Thornton <[email protected]>2012-06-02 16:11:35 -0700
commit5e5965ca6fe719e83f5eb06222170b87dba78f02 (patch)
treefa6723ece71b5f733d608c6228521609a4adbd99 /less/dropdowns.less
parentebc69356637143c938c07904d10928c11e742196 (diff)
parentb1d7c34086ec95a2b0507c595e3a353cdc550b9b (diff)
downloadbootstrap-5e5965ca6fe719e83f5eb06222170b87dba78f02.tar.xz
bootstrap-5e5965ca6fe719e83f5eb06222170b87dba78f02.zip
Merge branch 'accessibility' into 2.1.0-wip
Conflicts: docs/assets/js/bootstrap.min.js docs/javascript.html docs/templates/pages/javascript.mustache
Diffstat (limited to 'less/dropdowns.less')
-rw-r--r--less/dropdowns.less9
1 files changed, 8 insertions, 1 deletions
diff --git a/less/dropdowns.less b/less/dropdowns.less
index 5e232556a..f965d292d 100644
--- a/less/dropdowns.less
+++ b/less/dropdowns.less
@@ -34,11 +34,16 @@
margin-top: 8px;
margin-left: 2px;
}
-.dropdown:hover .caret,
+.dropdown a:focus .caret,
+.dropdown a:hover .caret,
.open .caret {
.opacity(100);
}
+.navbar .nav .open > a {
+ color: @navbarLinkColorActive;
+}
+
// The dropdown menu (ul)
// ----------------------
.dropdown-menu {
@@ -89,11 +94,13 @@
// Hover state
// -----------
.dropdown-menu li > a:hover,
+.dropdown-menu li > a:focus,
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover {
color: @dropdownLinkColorHover;
text-decoration: none;
background-color: @dropdownLinkBackgroundHover;
+ outline: 0;
}
// Open state for the dropdown