I have a button with an icon, say ion-ios7-person.
Now I want to have an checkmark icon overlayed on it to indicate a new state.
How can I do it with CSS?
You mean something like this?
1 Like
Nice trick.
But does it also work with buttons?
I cannot get it work…
Got this to work using the solution below:
<IonButton
className="grid-button"
fill="clear"
slot="icon-only"
>
<IonIcon
style={{
position: "fixed",
}}
slot="icon-only"
icon={albumsOutline}
/>
<IonIcon
style={{
position: "fixed",
top: "7px",
right: "4px",
fontSize: "1.2em"
}}
slot="icon-only"
icon={pencilOutline}
/>
</IonButton>