From b08d2b6adc65b67250c6ebf7e6c4401a705bb06c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 15 Jul 2019 10:26:55 -0700 Subject: [PATCH] Add :focus to all new :hover selectors --- site/static/docs/4.3/assets/scss/_nav.scss | 6 ++++-- site/static/docs/4.3/assets/scss/_sidebar.scss | 9 ++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/site/static/docs/4.3/assets/scss/_nav.scss b/site/static/docs/4.3/assets/scss/_nav.scss index 4f1f61f1b1..18a04cfe20 100644 --- a/site/static/docs/4.3/assets/scss/_nav.scss +++ b/site/static/docs/4.3/assets/scss/_nav.scss @@ -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; } diff --git a/site/static/docs/4.3/assets/scss/_sidebar.scss b/site/static/docs/4.3/assets/scss/_sidebar.scss index 43232e9aa4..14f1364b7f 100644 --- a/site/static/docs/4.3/assets/scss/_sidebar.scss +++ b/site/static/docs/4.3/assets/scss/_sidebar.scss @@ -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); @@ -99,7 +101,8 @@ } > .active > a, - > .active:hover > a { + > .active:hover > a, + > .active:focus > a { font-weight: 600; color: rgba(0, 0, 0, .85); }