Skip to content

Commit

Permalink
Merge pull request #14058 from twbs/btn_focus
Browse files Browse the repository at this point in the history
Follow up to #13907: Add .focus styles for buttons
  • Loading branch information
mdo committed Jul 7, 2014
2 parents 6f88238 + 9ed9eb9 commit d5e2262
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions less/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
&,
&:active,
&.active {
&:focus {
&:focus,
&.focus {
.tab-focus();
}
}

&:hover,
&:focus {
&:focus,
&.focus {
color: @btn-default-color;
text-decoration: none;
}
Expand Down
2 changes: 2 additions & 0 deletions less/mixins/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

&:hover,
&:focus,
&.focus,
&:active,
&.active,
.open > .dropdown-toggle& {
Expand All @@ -28,6 +29,7 @@
&,
&:hover,
&:focus,
&.focus,
&:active,
&.active {
background-color: @background;
Expand Down

0 comments on commit d5e2262

Please sign in to comment.