Skip to content

Commit

Permalink
fix(buttons): fix link state override
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmatthew committed Oct 6, 2020
1 parent fd006ec commit 1e38bb9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
15 changes: 10 additions & 5 deletions assets/stylesheets/bootstrap/mixins/_alerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@
color: $text-color;
}

a {
a:not(.btn) {
color: $text-color;
}

.btn-alert {
a.btn-alert,
a.btn-alert--primary {
text-decoration: none;
}

a.btn-alert.btn-alert:hover {
color: $black;
}

&:hover {
color: currentColor !important;
}
a.btn-alert--primary.btn-alert--primary:hover {
color: $white;
}
}
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,9 @@ <h2>Dropdowns</h2>
<div class="col-xs-12">
<h2>Alerts</h2>
<!-- Basic -->
<div class="alert alert-info">
<span>Something has happened. Yup.</span> <button class="btn btn-alert">Click me</button> <button class="btn btn-alert--primary">Click me</button>
<div class="alert alert-info" id="alert">
<span>Something has happened. Yup.</span> <a href="#alert" class="btn btn-alert">Click me</a> <a href="#alert" class="btn btn-alert--primary">Click me</a>
<button class="btn btn-alert">Click me</button> <button class="btn btn-alert--primary">Click me</button>
</div>

<!-- Success -->
Expand Down

0 comments on commit 1e38bb9

Please sign in to comment.