0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Fix active/focused button link text color

This commit is contained in:
Julien Déramond 2022-07-16 11:33:45 +02:00 committed by Mark Otto
parent d262a50c1f
commit 150b374933

View File

@ -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;
@ -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
}