Skip to content

Commit 8ff5f0f

Browse files
authored
refactor: (re)moved some leftovers out of #588 (#599)
1 parent e16bf08 commit 8ff5f0f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

source/_patterns/00-base/icons/_icons.helpers.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
}
3232

3333
content: var(--icon-glyph-#{$position});
34+
// Hiding icon from screenreaders
35+
@supports (content: ""/"") {
36+
content: var(--icon-glyph-#{$position}) / ""; // https://www.w3.org/TR/css-content-3/#alt
37+
}
3438

3539
@if $partial {
3640
display: inline-block;
@@ -53,9 +57,6 @@
5357
/* stylelint-enable */
5458

5559
// Hiding icon from screenreaders
56-
@supports (content: ""/"") {
57-
content: var(--icon-glyph) / ""; // https://www.w3.org/TR/css-content-3/#alt
58-
}
5960
/* stylelint-disable */
6061
-webkit-alt: "";
6162
/* stylelint-enable */

source/_patterns/00-base/icons/_icons.placeholder.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
-webkit-alt: "";
44
alt: "";
55

6-
content: var(--icon-glyph);
7-
86
display: inline-block;
97
/*** icon - placeholder ***/
108
// * use !important to prevent issues with browser extensions that change fonts
@@ -26,9 +24,6 @@
2624
vertical-align: middle;
2725

2826
// Hiding icon from screenreaders
29-
@supports (content: ""/"") {
30-
content: var(--icon-glyph) / ""; // https://www.w3.org/TR/css-content-3/#alt
31-
}
3227
@media aural {
3328
content: none;
3429
}

0 commit comments

Comments
 (0)