Reputation: 4414
I'm trying to increase the icon size in ion-checkbox
but I couldn't find a way to do.
I tried font-size
, --size
properties but they are increasing the overall width and height of the background instead of the check icon.
HTML
<ion-checkbox
color="secondary"
slot="start"
size="large">
</ion-checkbox>
CSS
ion-checkbox {
--background: var(--background-color);
--background-checked: var(--background-color);
--checkmark-color: var(--color-blue-medium);
--border-color: transparent;
--border-color-checked: transparent;
/* increasing overall width not the check icon size */
--size:48px;
}
Upvotes: 4
Views: 4676
Reputation: 7129
Size of the icon can be modified by the zoom property in style.
In .scss file
.my-icon { zoom : 2.0;}
In .html file
<ion-icon class="my-icon"></ion-icon>
Upvotes: 2