Improving Lighthouse score

This commit is contained in:
Liyas Thomas
2019-09-16 18:27:07 +05:30
parent 95eb7b86c9
commit 945da8bf92
5 changed files with 43 additions and 42 deletions

View File

@@ -7,8 +7,8 @@
<input id="url" type="url" :class="{ error: !urlValid }" v-model="url" @keyup.enter="urlValid ? toggleConnection() : null">
</li>
<li>
<label for="action" class="hide-on-small-screen">&nbsp;</label>
<button :disabled="!urlValid" name="action" @click="toggleConnection">
<label for="connect" class="hide-on-small-screen">&nbsp;</label>
<button :disabled="!urlValid" id="connect" name="connect" @click="toggleConnection">
{{ toggleConnectionVerb }}
<span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" v-if="!connectionState">
@@ -41,7 +41,7 @@
</li>
<li>
<label for="send" class="hide-on-small-screen">&nbsp;</label>
<button name="send" :disabled="!connectionState" @click="sendMessage">
<button id="send" name="send" :disabled="!connectionState" @click="sendMessage">
Send
<span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">