From 9ed9eb97ee09e514da942d680dac032628124816 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 7 Jul 2014 00:56:06 -0700 Subject: [PATCH] Follow up to #13907: Add .focus styles for buttons --- less/buttons.less | 6 ++++-- less/mixins/buttons.less | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/less/buttons.less b/less/buttons.less index cda87cb8cb..05bd89d081 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -23,13 +23,15 @@ &, &:active, &.active { - &:focus { + &:focus, + &.focus { .tab-focus(); } } &:hover, - &:focus { + &:focus, + &.focus { color: @btn-default-color; text-decoration: none; } diff --git a/less/mixins/buttons.less b/less/mixins/buttons.less index 409f8f20a4..92d8a056cd 100644 --- a/less/mixins/buttons.less +++ b/less/mixins/buttons.less @@ -10,6 +10,7 @@ &:hover, &:focus, + &.focus, &:active, &.active, .open > .dropdown-toggle& { @@ -28,6 +29,7 @@ &, &:hover, &:focus, + &.focus, &:active, &.active { background-color: @background;