Skip to content

Commit 43d5886

Browse files
remove text colour change on :focus from dark links
1 parent 0a6ffe5 commit 43d5886

File tree

4 files changed

+1
-33
lines changed

4 files changed

+1
-33
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* This will decrease the specificity of Protocol's link and button components, hopefully making local overrides easier, no need to change anything you already have in place.
2525
* Removal of `:link` pseudo classes in some places will mean that `<a>` elements which do not have a `href` value could now have link styles when previously they would not have. But, like, maybe don't do that?
2626
* Removed `:visted` styles for `.mzp-c-button` they should match unvisited styles, if you have `:visited` styles defined check they are still legible without the expected inherited styles.
27-
* Removed the text colour change from `:link:focus` styles. Rely on the focus ring for a focus indicator instead.
27+
* Removed the text colour change from `:focus` styles. Rely on the focus ring for a focus indicator instead.
2828

2929
# 21.1.0
3030

assets/sass/protocol/components/_button.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@
7272
// * -------------------------------------------------------------------------- */
7373
// Button shape and size
7474

75-
76-
7775
.mzp-c-button, /* stylelint-disable-line no-duplicate-selectors */
7876
a.mzp-c-button {
7977
@include border-box;

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@
232232
}
233233

234234
&:hover,
235-
&:focus,
236235
&:active {
237236
color: themes.$link-color-hover-inverse;
238237
}
@@ -247,7 +246,6 @@
247246
}
248247

249248
&:hover,
250-
&:focus,
251249
&:active {
252250
color: var(--link-color-hover-inverse);
253251
}
@@ -261,7 +259,6 @@
261259
color: tokens.$color-white;
262260

263261
&:hover,
264-
&:focus,
265262
&:active {
266263
color: tokens.$color-white;
267264
}

components/button/button.html

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,6 @@
99
# iconStart - markup
1010
# iconEnd - markup
1111
#}
12-
13-
<p><a href="https://www.mozilla.org">Visited</a></p>
14-
<p><a href="https://www.example.com/test">Unvisited</a></p>
15-
<p><button>button</button></p>
16-
17-
<p><a href="https://www.mozilla.org" class="mzp-c-button">Visited</a></p>
18-
<p><a href="https://www.example.com/test" class="mzp-c-button">Unvisited</a></p>
19-
<p><button class="mzp-c-button">button</button></p>
20-
21-
<p><a href="https://www.mozilla.org" class="mzp-c-button mzp-t-product">Visited</a></p>
22-
<p><a href="https://www.example.com/test" class="mzp-c-button mzp-t-product">Unvisited</a></p>
23-
<p><button class="mzp-c-button mzp-t-product">button</button></p>
24-
25-
<div style="background-color: #000;">
26-
27-
<p><a href="https://www.mozilla.org" class="mzp-c-button mzp-t-dark">Visited</a></p>
28-
<p><a href="https://www.example.com/test" class="mzp-c-button mzp-t-dark">Unvisited</a></p>
29-
<p><button class="mzp-c-button mzp-t-dark">button</button></p>
30-
31-
<p><a href="https://www.mozilla.org" class="mzp-c-button mzp-t-product mzp-t-secondary mzp-t-dark">Visited</a></p>
32-
<p><a href="https://www.example.com/test" class="mzp-c-button mzp-t-product mzp-t-secondary mzp-t-dark">Unvisited</a></p>
33-
<p><button class="mzp-c-button mzp-t-product mzp-t-secondary mzp-t-dark">button</button></p>
34-
35-
36-
</div>
37-
38-
3912
{%- if link -%}
4013
<a class="mzp-c-button{% if class %} {{ class }}{% endif %}" href="{{ link }}">
4114
{%- if iconStart %}

0 commit comments

Comments
 (0)