mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(icon): remove stroke and move fill to host element (#18241)
This removes the weird border around custom SVGs used in an ion-icon. fixes #16483
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
"loader/"
|
||||
],
|
||||
"dependencies": {
|
||||
"ionicons": "4.5.6"
|
||||
"ionicons": "4.5.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@stencil/core": "0.17.3-0",
|
||||
|
1
core/src/components/icon/test/standalone/done-all.svg
Normal file
1
core/src/components/icon/test/standalone/done-all.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>
|
After Width: | Height: | Size: 292 B |
@ -57,6 +57,9 @@
|
||||
<ion-icon name="umbrella"></ion-icon>
|
||||
<ion-icon name="rainy" color="primary"></ion-icon>
|
||||
|
||||
<!-- Custom Icon-->
|
||||
<ion-icon src="./standalone/done-all.svg"></ion-icon>
|
||||
|
||||
<style>
|
||||
ion-icon {
|
||||
font-size: 50px;
|
||||
|
Reference in New Issue
Block a user