Fix spinner button spinning background

Fixes #107
This commit is contained in:
Nolan Lawson 2018-04-14 09:38:11 -07:00
parent 1604869517
commit bbeffee47e
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
:disabled
delegate-key="{{delegateKey}}"
focus-key="{{focusKey || ''}}" >
<svg class="icon-button-svg" ref:svg>
<svg class="icon-button-svg {{svgClassName || ''}}" ref:svg>
<use xlink:href="{{href}}" />
</svg>
</button>
@ -18,7 +18,7 @@
focus-key="{{focusKey || ''}}"
:disabled
on:click >
<svg class="icon-button-svg" ref:svg>
<svg class="icon-button-svg {{svgClassName || ''}}" ref:svg>
<use xlink:href="{{href}}" />
</svg>
</button>

View File

@ -6,7 +6,7 @@
on:click="onEmojiClick()"
/>
<IconButton
className="{{$uploadingMedia ? 'spin' : ''}}"
svgClassName="{{$uploadingMedia ? 'spin' : ''}}"
label="Add media"
href="{{$uploadingMedia ? '#fa-spinner' : '#fa-camera'}}"
on:click="onMediaClick()"