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

CSS: Make use of --bs-link-decoration and --bs-link-hover-decoration #39098

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@
--#{$prefix}btn-box-shadow: 0 0 0 #000; // Can't use `none` as keyword negates all values when used with multiple shadows
--#{$prefix}btn-focus-shadow-rgb: #{to-rgb(mix(color-contrast($link-color), $link-color, 15%))};

text-decoration: $link-decoration;
text-decoration: var(--#{$prefix}link-decoration);
@if $enable-gradients {
background-image: none;
}

&:hover,
&:focus-visible {
text-decoration: $link-hover-decoration;
text-decoration: var(--#{$prefix}link-hover-decoration);
}

&:focus-visible {
Expand Down
4 changes: 2 additions & 2 deletions scss/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ sup { top: -.5em; }

a {
color: rgba(var(--#{$prefix}link-color-rgb), var(--#{$prefix}link-opacity, 1));
text-decoration: $link-decoration;
text-decoration: var(--#{$prefix}link-decoration);

&:hover {
--#{$prefix}link-color-rgb: var(--#{$prefix}link-hover-color-rgb);
text-decoration: $link-hover-decoration;
text-decoration: var(--#{$prefix}link-hover-decoration);
}
}

Expand Down
2 changes: 1 addition & 1 deletion scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ $link-color: $primary !default;
$link-decoration: underline !default;
$link-shade-percentage: 20% !default;
$link-hover-color: shift-color($link-color, $link-shade-percentage) !default;
$link-hover-decoration: null !default;
$link-hover-decoration: underline !default;
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved

$stretched-link-pseudo-element: after !default;
$stretched-link-z-index: 1 !default;
Expand Down