From c4b087062d5ac731b92fe85b2c65a4f4bb6e8693 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Sat, 5 Mar 2016 01:01:09 +0000 Subject: [PATCH] Neutralize link styles for placeholder links/named anchors --- scss/_reboot.scss | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scss/_reboot.scss b/scss/_reboot.scss index 0b2990130d..d01d31f68c 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -171,6 +171,25 @@ a { } } +// and undo these styles for placeholder links/named anchors (without href) +// would be more straightforward to just use a[href] in previous block, but this +// causes specificity issues in many other styles that are too complex to fix +// see https://github.com/twbs/bootstrap/issues/19402 + +a:not([href]) { + color: inherit; + text-decoration: none; + + @include hover-focus { + color: inherit; + text-decoration: none; + } + + &:focus { + outline: none; + } +} + // // Code