Skip to content

Commit

Permalink
docs: added relevant comment (#934)
Browse files Browse the repository at this point in the history
we need to explain the solution
  • Loading branch information
mfranzke authored Aug 19, 2024
1 parent 13624ae commit 71e0da2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/_patterns/00-base/icons/_icons.helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
content: var(--icon-glyph-#{$position});
@supports (content: ""/"") {
// Hiding icon from screenreaders
// We couldn't just add the following code line and expect an forgiving behaviour of unsupporting browser to ignore this declaration, but need to wrap it into an @supports due to a bug in WebKit / older versions of Safari: https://github.com/db-ui/core/pull/766
content: var(--icon-glyph-#{$position}) / ""; // https://www.w3.org/TR/css-content-3/#alt
}

Expand Down

0 comments on commit 71e0da2

Please sign in to comment.