Example of using class to hide SVG symbols

This commit is contained in:
Mikel Kew 2020-06-25 09:21:23 +10:00
parent 1147d199a3
commit 76812f5988
No known key found for this signature in database
GPG Key ID: A81E725FC5835CD1
3 changed files with 5 additions and 2 deletions

View File

@ -900,7 +900,7 @@ function asSymbol (_ref) {
return [{
tag: 'svg',
attributes: {
style: 'display: none;'
class: 'svg-symbol--fa'
},
children: [{
tag: 'symbol',

View File

@ -906,7 +906,7 @@
return [{
tag: 'svg',
attributes: {
style: 'display: none;'
class: 'svg-symbol--fa'
},
children: [{
tag: 'symbol',

View File

@ -320,6 +320,9 @@ svg:not(:root).svg-inline--fa {
height: 2em;
width: 2.5em; }
.svg-symbol--fa {
display: none; }
.fa-inverse {
color: #fff; }