Commit 40c81c2b authored by Patrick H. Lauke's avatar Patrick H. Lauke
Browse files

Merge pull request #19411 from patrickhlauke/v4-links-not-anchors

Neutralize link styles for placeholder links/named anchors
parents 01be3449 c4b08706
Showing with 19 additions and 0 deletions
+19 -0
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment