Skip to content

Commit

Permalink
Fix active/focused button link text color
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond authored and mdo committed Jul 18, 2022
1 parent 6d101b1 commit 9544bb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .bundlewatch.config.json
Expand Up @@ -30,7 +30,7 @@
},
{
"path": "./dist/css/bootstrap.min.css",
"maxSize": "26.5 kB"
"maxSize": "26.75 kB"
},
{
"path": "./dist/js/bootstrap.bundle.js",
Expand Down
9 changes: 9 additions & 0 deletions scss/_buttons.scss
Expand Up @@ -147,6 +147,7 @@
--#{$prefix}btn-border-color: transparent;
--#{$prefix}btn-hover-color: #{$btn-link-hover-color};
--#{$prefix}btn-hover-border-color: transparent;
--#{$prefix}btn-active-color: #{$btn-link-hover-color};
--#{$prefix}btn-active-border-color: transparent;
--#{$prefix}btn-disabled-color: #{$btn-link-disabled-color};
--#{$prefix}btn-disabled-border-color: transparent;
Expand All @@ -160,6 +161,14 @@
text-decoration: $link-hover-decoration;
}

&:focus {
color: var(--#{$prefix}btn-color);
}

&:hover {
color: var(--#{$prefix}btn-hover-color);
}

// No need for an active state here
}

Expand Down

0 comments on commit 9544bb7

Please sign in to comment.