Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 2395ab9

Browse files
mikelizard5mathisscott
mikelizard5
authored andcommitted
fix(header): fix anchor link hovers in clr-angular header
Signed-off-by: Miguel Amaya <[email protected]>
1 parent f51e999 commit 2395ab9

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

packages/angular/projects/clr-angular/src/layout/nav/_header.clarity.scss

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,27 @@
1515
left: 0;
1616
}
1717

18-
@mixin header-nav-appearance() {
18+
@mixin header-nav-appearance($type: null) {
1919
@include css-var(color, clr-header-font-color, $clr-header-font-color, $clr-use-custom-properties);
2020
@include css-var(opacity, clr-header-nav-opacity, $clr-header-nav-opacity, $clr-use-custom-properties);
21-
22-
&:enabled:hover {
23-
@include css-var(opacity, clr-header-nav-hover-opacity, $clr-header-nav-hover-opacity, $clr-use-custom-properties);
21+
@if $type == anchor {
22+
&:hover {
23+
@include css-var(
24+
opacity,
25+
clr-header-nav-hover-opacity,
26+
$clr-header-nav-hover-opacity,
27+
$clr-use-custom-properties
28+
);
29+
}
30+
} @else {
31+
&:enabled:hover {
32+
@include css-var(
33+
opacity,
34+
clr-header-nav-hover-opacity,
35+
$clr-header-nav-hover-opacity,
36+
$clr-use-custom-properties
37+
);
38+
}
2439
}
2540

2641
&:disabled {
@@ -132,6 +147,9 @@
132147
@include equilateral($clr-header-height);
133148
}
134149

150+
a.nav-link {
151+
@include header-nav-appearance(anchor);
152+
}
135153
.nav-link {
136154
position: relative;
137155
display: inline-block;

0 commit comments

Comments
 (0)