Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neutralize link styles for placeholder links/named anchors #19411

Merged
merged 1 commit into from
Mar 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions scss/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down