Skip to content

Commit

Permalink
feat(header): L3-4294 links underline fix (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinehuzenko authored Oct 24, 2024
1 parent 68d88d3 commit 47802e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/components/Link/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@

&:hover,
&:focus-visible {
@include underline(
$color: $dark-gray,
$padding: 0.5rem 0.625rem calc(0.5rem + 2px)
); // 1 px so that the bottom border of the nav counts as part of the button
@include underline($color: $dark-gray); // 1 px so that the bottom border of the nav counts as part of the button

color: $dark-gray;
}
Expand Down
2 changes: 1 addition & 1 deletion src/patterns/UserManagement/_userManagement.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
padding-bottom: $padding-xsm;

&:hover {
@include underline($padding-xsm);
@include underline;
}

@include isHeaderMobile {
Expand Down
7 changes: 4 additions & 3 deletions src/scss/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
font-family: Distinct, sans-serif;
}

@mixin underline($padding: 0, $width: 0.0625rem, $color: $pure-black) {
border-bottom: $width solid $color;
padding-bottom: $padding;
@mixin underline($offset: $spacing-xsm, $thickness: 1px, $color: $pure-black) {
text-decoration: underline;
text-decoration-thickness: $thickness;
text-underline-offset: $offset;
}

@mixin hText(
Expand Down

0 comments on commit 47802e7

Please sign in to comment.