i’m trying to make the background color of the icon green without it going over the circular shape of the icon
i’ve been trying to match the html element’s border to the icon’s shape, but the element’s border is always slightly bigger, even with no padding
2
Answers
Here’s an example. It seems like 80% of the icon radius is enough for most cases. You can play with the percent if you want. It’s best to check on different browsers.
Results can be achieved by simply adding ":hover" property to "material-symbols-outlined" & if you want to added uniquely to certain icons added unique class to them and add ":hover".
Try below code and feel free to modify, cheers.