Skip to content

Commit 35fa5bf

Browse files
Remove :hover:visited styles (Fix #1071)
1 parent 8f45bb5 commit 35fa5bf

File tree

10 files changed

+22
-80
lines changed

10 files changed

+22
-80
lines changed

assets/sass/protocol/base/elements/_links.scss

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
color: $link-color;
99
text-decoration: underline;
1010

11+
:visited {
12+
color: $link-color-visited;
13+
}
14+
1115
&:hover,
1216
&:focus,
1317
&:active {
@@ -30,26 +34,6 @@
3034
}
3135
}
3236

33-
:visited {
34-
color: $link-color-visited;
35-
36-
&:hover,
37-
&:focus,
38-
&:active {
39-
color: $link-color-visited-hover;
40-
}
41-
42-
@supports (--css: variables) {
43-
color: var(--link-color-visited);
44-
45-
&:hover,
46-
&:focus,
47-
&:active {
48-
color: var(--link-color-visited-hover);
49-
}
50-
}
51-
}
52-
5337
.mzp-t-dark {
5438
@include light-links;
5539
}

assets/sass/protocol/components/_button.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ a.mzp-c-button {
135135
// Primary
136136

137137
.mzp-c-button,
138-
a.mzp-c-button:link,
139-
a.mzp-c-button:visited {
138+
a.mzp-c-button {
140139
background-color: $color-black;
141140
border: 2px solid $color-black;
142141
color: $color-white;
@@ -180,8 +179,7 @@ a.mzp-c-button {
180179
// Product Buttons
181180

182181
.mzp-c-button.mzp-t-product,
183-
a.mzp-c-button.mzp-t-product:link,
184-
a.mzp-c-button.mzp-t-product:visited {
182+
a.mzp-c-button.mzp-t-product {
185183
background-color: $color-blue-50;
186184
border-color: transparent;
187185
color: $color-white;

assets/sass/protocol/components/_footer.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
a:visited {
2626
font-weight: normal;
2727
text-decoration: underline;
28+
}
2829

29-
&:hover,
30-
&:focus,
31-
&:active {
32-
text-decoration: none;
33-
}
30+
a:hover,
31+
a:focus,
32+
a:active {
33+
text-decoration: none;
3434
}
3535
}
3636

assets/sass/protocol/components/_notification-bar.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@
3636
font-size: inherit;
3737
font-weight: 700;
3838

39-
&:hover,
40-
&:active,
41-
&:focus {
42-
color: inherit;
43-
text-decoration: none;
44-
}
45-
4639
&.mzp-c-notification-bar-cta {
4740
margin: 0 $spacing-sm;
4841
}
4942
}
5043

44+
a:hover,
45+
a:active,
46+
a:focus {
47+
color: inherit;
48+
text-decoration: none;
49+
}
50+
5151
&.mzp-is-sticky {
5252
left: $spacing-md;
5353
margin: $spacing-md 0;

assets/sass/protocol/includes/_themes-sass.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ $body-text-color: tokens.$color-black;
4343
$link-color-hover-inverse: tokens.$color-blue-05;
4444
$link-color-hover: tokens.$color-link-hover;
4545
$link-color-inverse: tokens.$color-blue-10;
46-
$link-color-visited-hover-inverse: tokens.$color-violet-05;
47-
$link-color-visited-hover: tokens.$color-link-hover;
4846
$link-color-visited-inverse: tokens.$color-violet-10;
4947
$link-color-visited: tokens.$color-link-visited;
5048
$link-color: tokens.$color-link;
@@ -127,8 +125,6 @@ $theme-colors-firefox: (
127125
link-color-hover-inverse: tokens.$color-blue-05,
128126
link-color-hover: tokens.$color-link-hover,
129127
link-color-inverse: tokens.$color-blue-10,
130-
link-color-visited-hover-inverse: tokens.$color-violet-05,
131-
link-color-visited-hover: tokens.$color-link-hover,
132128
link-color-visited-inverse: tokens.$color-violet-10,
133129
link-color-visited: tokens.$color-link-visited,
134130
link-color: tokens.$color-link,
@@ -149,8 +145,6 @@ $theme-colors-mozilla: (
149145
link-color-hover-inverse: tokens.$color-blue-05,
150146
link-color-hover: tokens.$color-link-hover,
151147
link-color-inverse: tokens.$color-blue-10,
152-
link-color-visited-hover-inverse: tokens.$color-violet-05,
153-
link-color-visited-hover: tokens.$color-link-hover,
154148
link-color-visited-inverse: tokens.$color-violet-10,
155149
link-color-visited: tokens.$color-link-visited,
156150
link-color: tokens.$color-link,

assets/sass/protocol/includes/mixins/_utils.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,6 @@
238238
color: themes.$link-color-hover-inverse;
239239
}
240240

241-
a:visited:hover,
242-
a:visited:focus,
243-
a:visited:active {
244-
color: themes.$link-color-visited-hover-inverse;
245-
}
246-
247241
@supports (--css: variables) {
248242
a:link {
249243
color: var(--link-color-inverse);
@@ -258,12 +252,6 @@
258252
a:active {
259253
color: var(--link-color-hover-inverse);
260254
}
261-
262-
a:visited:hover,
263-
a:visited:focus,
264-
a:visited:active {
265-
color: var(--link-color-visited-hover-inverse);
266-
}
267255
}
268256
}
269257

assets/sass/protocol/includes/themes/_firefox.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
--link-color-hover-inverse: #{tokens.$color-blue-05};
2525
--link-color-hover: #{tokens.$color-link-hover};
2626
--link-color-inverse: #{tokens.$color-blue-10};
27-
--link-color-visited-hover-inverse: #{tokens.$color-violet-05};
28-
--link-color-visited-hover: #{tokens.$color-link-hover};
2927
--link-color-visited-inverse: #{tokens.$color-violet-10};
3028
--link-color-visited: #{tokens.$color-link-visited};
3129
--link-color: #{tokens.$color-link};

assets/sass/protocol/includes/themes/_mozilla.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
--link-color-hover-inverse: #{tokens.$color-blue-05};
3030
--link-color-hover: #{tokens.$color-link-hover};
3131
--link-color-inverse: #{tokens.$color-blue-10};
32-
--link-color-visited-hover-inverse: #{tokens.$color-violet-05};
33-
--link-color-visited-hover: #{tokens.$color-link-hover};
3432
--link-color-visited-inverse: #{tokens.$color-violet-10};
3533
--link-color-visited: #{tokens.$color-link-visited};
3634
--link-color: #{tokens.$color-link};

docs/02-usage/02-framework.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ link-color-hover
129129
link-color-hover-inverse
130130
link-color-inverse
131131
link-color-visited
132-
link-color-visited-hover
133-
link-color-visited-hover-inverse
134132
link-color-visited-inverse
135133
title-font-family
136134
title-text-color

theme/assets/sass/components/_prose.scss

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
color: $link-color;
1414
text-decoration: underline;
1515

16+
&:visited {
17+
color: $link-color-visited;
18+
}
19+
1620
&:hover,
1721
&:focus,
1822
&:active {
@@ -35,26 +39,6 @@
3539
}
3640
}
3741

38-
:visited {
39-
color: $link-color-visited;
40-
41-
&:hover,
42-
&:focus,
43-
&:active {
44-
color: $link-color-visited-hover;
45-
}
46-
47-
@supports (--css: variables) {
48-
color: var(--link-color-visited);
49-
50-
&:hover,
51-
&:focus,
52-
&:active {
53-
color: var(--link-color-visited-hover);
54-
}
55-
}
56-
}
57-
5842
h1,
5943
h2,
6044
h3,

0 commit comments

Comments
 (0)