Closed neko-para closed 1 month ago
Ooops... That's a good question. I'll come up with a solution soon.
I added some properties/attributes to control the icon animation parameters: icon-spin
, icon-spin-duration
, icon-after-spin
, icon-after-spin-duration
Or you can place an animated icon within the button.
<vscode-button>
<vscode-icon spin spin-duration="1" name="sync" aria-hidden="true"></vscode-icon>
Loading
</vscode-button>
I added some properties/attributes to control the icon animation parameters:
icon-spin
,icon-spin-duration
,icon-after-spin
,icon-after-spin-duration
Or you can place an animated icon within the button.<vscode-button> <vscode-icon spin spin-duration="1" name="sync" aria-hidden="true"></vscode-icon> Loading </vscode-button>
Actually I've tried adding icon directly inside button before, but the icon isn't properly aligned with text. The new icon-spin
attribute works.
It wasn't aligned properly, but I also fixed the CSS.
E.g. setting
spin
property for thevscode-icon
inside.