Commit dc781152 authored by Mark Otto's avatar Mark Otto
Browse files

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

Make named anchor/placeholder link style reset more specific
parents 2a36b4b3 64251a12
16 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!26437merge,!26197V4 dev xmr,!20778V4 dev,!20539Allow multiple modals,!20493V4 dev display,!20636Fix docs for heading sizes,!22547Finished a new translation for bootstrap,!22143Fix selectable disabled toggle radio buttons,!22598test,!21067dfsa,!25326Adjust examples,!23995Add back cursor: pointer for .btn-link,!23178Spinner,!17021v4
Showing with 3 additions and 2 deletions
+3 -2
......@@ -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;
......
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