diff options
| author | Mark Otto <[email protected]> | 2016-05-12 11:16:24 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-05-12 11:16:24 -0700 |
| commit | dc7811520c36cfabebc838863fca4282739ef114 (patch) | |
| tree | fcd35bc61d1ef4962473ef0b372aaa1297cd3941 | |
| parent | 2a36b4b320fb18f5bc21513e9bf164159a1acf1e (diff) | |
| parent | 64251a12a4d30f1b61cbbbf17ef603a0d083e60b (diff) | |
| download | bootstrap-dc7811520c36cfabebc838863fca4282739ef114.tar.xz bootstrap-dc7811520c36cfabebc838863fca4282739ef114.zip | |
Merge pull request #19874 from patrickhlauke/v4-links-not-anchors-focusable
Make named anchor/placeholder link style reset more specific
| -rw-r--r-- | scss/_reboot.scss | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss index e30de2c1b..02c579d32 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -171,12 +171,13 @@ a { } } -// And undo these styles for placeholder links/named anchors (without href). +// And undo these styles for placeholder links/named anchors (without href) +// which have not been made explicitly keyboard-focusable (without tabindex). // It would be more straightforward to just use a[href] in previous block, but that // causes specificity issues in many other styles that are too complex to fix. // See https://github.com/twbs/bootstrap/issues/19402 -a:not([href]) { +a:not([href]):not([tabindex]) { color: inherit; text-decoration: none; |
