mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Merge pull request #19411 from patrickhlauke/v4-links-not-anchors
Neutralize link styles for placeholder links/named anchors
This commit is contained in:
commit
40c81c2ba3
@ -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
|
// Code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user