Skip to content

Commit

Permalink
Merge pull request #658 from qld-gov-au/QOLDEV-43-double-underline
Browse files Browse the repository at this point in the history
QOLDEV-43 fix double underline
  • Loading branch information
ThrawnCA authored Dec 11, 2022
2 parents 36b22bd + f132684 commit a9bbf49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/assets/_project/_blocks/components/link/_qg-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,8 @@
@include qg-link-styles__default
}
}

// Don't apply a text-decoration if underline is hardcoded
u a {
text-decoration-line: none !important;
}
7 changes: 7 additions & 0 deletions src/assets/_project/_blocks/scss-general/_qg-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,16 @@ $qg-linkedin: #0077b5;
@mixin qg-link-decoration {
@include qg-link-underline;
text-decoration-thickness: 0.5px;
@include qg-link-visited-decoration;
}
@mixin qg-link-visited-decoration {
&:visited {
text-decoration-color: currentColor;
}
}
@mixin qg-link-none-decoration {
text-decoration-line: none;
@include qg-link-visited-decoration;
}
@mixin qg-link-hover-decoration {
@include hover {
Expand Down

0 comments on commit a9bbf49

Please sign in to comment.