Skip to content

Commit 71e0da2

Browse files
authored
docs: added relevant comment (#934)
we need to explain the solution
1 parent 13624ae commit 71e0da2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
content: var(--icon-glyph-#{$position});
3636
@supports (content: ""/"") {
3737
// Hiding icon from screenreaders
38+
// 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
3839
content: var(--icon-glyph-#{$position}) / ""; // https://www.w3.org/TR/css-content-3/#alt
3940
}
4041

0 commit comments

Comments
 (0)