]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add :focus to all new :hover selectors
authorMark Otto <markdotto@gmail.com>
Mon, 15 Jul 2019 17:26:55 +0000 (10:26 -0700)
committerMark Otto <otto@github.com>
Mon, 22 Jul 2019 04:44:32 +0000 (21:44 -0700)
site/static/docs/4.3/assets/scss/_nav.scss
site/static/docs/4.3/assets/scss/_sidebar.scss

index 4f1f61f1b19cca86d564e135fa331f53c7aff3c3..18a04cfe202e4ddcb9c8c8668306ed3024eb0d39 100644 (file)
@@ -34,7 +34,8 @@
   font-weight: 500;
   color: $dark;
 
-  &:hover {
+  &:hover,
+  &:focus {
     color: $blue;
     text-decoration: none;
   }
@@ -70,7 +71,8 @@
       color: $bd-purple-light;
 
       &.active,
-      &:hover {
+      &:hover,
+      &:focus {
         color: $white;
         background-color: transparent;
       }
index 43232e9aa4143e46dadfe522d157ed7852f9530b..14f1364b7fb4c6d4ae9a1bacc5eefb522a081918 100644 (file)
@@ -45,7 +45,8 @@
 
   > * { pointer-events: none; }
 
-  &:hover {
+  &:hover,
+  &:focus {
     color: rgba(0, 0, 0, .85);
     text-decoration: none;
     background-color: rgba($bd-purple-bright, .1);
@@ -91,7 +92,8 @@
     color: rgba(0, 0, 0, .65);
     @include border-radius(.25rem);
 
-    &:hover {
+    &:hover,
+    &:focus {
       color: rgba(0, 0, 0, .85);
       text-decoration: none;
       background-color: rgba($bd-purple-bright, .1);
   }
 
   > .active > a,
-  > .active:hover > a {
+  > .active:hover > a,
+  > .active:focus > a {
     font-weight: 600;
     color: rgba(0, 0, 0, .85);
   }