diff options
| author | Patrick H. Lauke <[email protected]> | 2013-01-02 22:39:21 +0000 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2013-01-02 22:39:21 +0000 |
| commit | 848ca6e31562fc65da891cce9046853bd16564eb (patch) | |
| tree | 3fb4c8c6be86061b9ef0c5d62c39d14f39427791 /less/type.less | |
| parent | 1c0e4fc7bb6ab2ef12f1050ed177a02d16ebdbce (diff) | |
| download | bootstrap-848ca6e31562fc65da891cce9046853bd16564eb.tar.xz bootstrap-848ca6e31562fc65da891cce9046853bd16564eb.zip | |
Basic keyboard accessibility CSS tweaks
Mostly doubling-up :hover styles to also cover :focus, as a first step
to making the framework more keyboard-friendly.
Additionally, fixed two small markup issues in the docs/examples to
make the "Learn more" large primary button-styled links
keyboard-focusable (as without href they're treated as non-tabable
anchors).
Diffstat (limited to 'less/type.less')
| -rw-r--r-- | less/type.less | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/less/type.less b/less/type.less index 6b1c6d291..58a4d4794 100644 --- a/less/type.less +++ b/less/type.less @@ -29,19 +29,24 @@ cite { font-style: normal; } // Utility classes .muted { color: @grayLight; } -a.muted:hover { color: darken(@grayLight, 10%); } +a.muted:hover, +a.muted:focus { color: darken(@grayLight, 10%); } .text-warning { color: @warningText; } -a.text-warning:hover { color: darken(@warningText, 10%); } +a.text-warning:hover, +a.text-warning:focus { color: darken(@warningText, 10%); } .text-error { color: @errorText; } -a.text-error:hover { color: darken(@errorText, 10%); } +a.text-error:hover, +a.text-error:focus { color: darken(@errorText, 10%); } .text-info { color: @infoText; } -a.text-info:hover { color: darken(@infoText, 10%); } +a.text-info:hover, +a.text-info:focus { color: darken(@infoText, 10%); } .text-success { color: @successText; } -a.text-success:hover { color: darken(@successText, 10%); } +a.text-success:hover, +a.text-success:focus { color: darken(@successText, 10%); } // Headings |
