mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-11-30 16:48:16 +01:00
fix(icon): apply correct class to svg (#739)
* fix font size * fix(icon): apply display to svg instead of ionicon class
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
}
|
||||
|
||||
.icon-inner,
|
||||
.ionicon {
|
||||
.ionicon,
|
||||
svg {
|
||||
display: block;
|
||||
|
||||
height: 100%;
|
||||
|
||||
@@ -46,6 +46,10 @@
|
||||
<h2>Stroke width</h2>
|
||||
<ion-icon name="heart-outline" style="--ionicon-stroke-width: 8px;"></ion-icon>
|
||||
|
||||
<h2>Font size</h2>
|
||||
<ion-icon name="book" style="font-size: 50px;"></ion-icon>
|
||||
<ion-icon src="./assets/bug_report.svg" style="font-size: 50px;"></ion-icon>
|
||||
|
||||
<h2>Custom SVGs</h2>
|
||||
<ion-icon src="./assets/bug_report.svg"></ion-icon>
|
||||
<ion-icon src="./assets/chat.svg"></ion-icon>
|
||||
|
||||
Reference in New Issue
Block a user