The front-end page sometimes has the problem of borders appearing after the svg icon is clicked, as shown in the following figure:
normal:
After clicking:
At this time, set the style of the icon to outline: none
outline: none;
Reference: Reasons and solutions for black boxes appearing after clicking Button, icon Svg, etc.