Fix spinner button spinning background (#113)

Fixes #107
This commit is contained in:
Nolan Lawson 2018-04-14 10:07:45 -07:00 committed by GitHub
parent 18af622f49
commit 6be77a6b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

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