]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Make named anchor/placeholder link style reset more specific 19874/head
authorPatrick H. Lauke <redux@splintered.co.uk>
Tue, 10 May 2016 09:29:47 +0000 (10:29 +0100)
committerPatrick H. Lauke <redux@splintered.co.uk>
Tue, 10 May 2016 09:29:47 +0000 (10:29 +0100)
commit64251a12a4d30f1b61cbbbf17ef603a0d083e60b
tree99ddad43935fbb8276b553490e5d511c78348ff1
parent5aa32b3f3ac652fd2bfa7793f38c7fda780f3e12
Make named anchor/placeholder link style reset more specific

This avoids applying the reset to named anchors/placeholder links (links
without an `href`) that have explicitly been made keyboard-focusable
(using `tabindex`). This is not fool-proof - it's not
easy/straightforward to check for the actual `tabindex` value itself, to
ensure it's positive, not will this apply if a link has been "blessed"
with `tabindex` via JS. However, this should catch most common uses (and
gives a reasonably valid way around the issue for developers who, for
whatever reason, DO want to use links without `href` - as side effect,
it forces best practice of at least ensuring these links can also be
focused with the keyboard)
scss/_reboot.scss