feat(Icon): add font-family css var (#12354)

* feat: icon family var

* fix: var name

---------

Co-authored-by: fanjiazhao <fanjiazhao@youzan.com>
This commit is contained in:
JeremyFan 2023-10-10 11:47:01 +08:00 committed by GitHub
parent f0303462b6
commit 87d5349998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
.van-icon {
position: relative;
display: inline-block;
font: normal normal normal 14px/1 'vant-icon';
font: normal normal normal 14px/1 var(--van-icon-font-family, 'vant-icon');
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;