mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-01 11:09:13 +01:00
Use inert attribute in place of aria-hidden
This commit is contained in:
parent
97059cbf8d
commit
f6c090781e
@ -425,7 +425,7 @@
|
|||||||
<div class="column">
|
<div class="column">
|
||||||
<FieldError v-if="iconForm.errors.hasAny('icon')" :error="iconForm.errors.get('icon')" :field="'icon'" class="help-for-file" />
|
<FieldError v-if="iconForm.errors.hasAny('icon')" :error="iconForm.errors.get('icon')" :field="'icon'" class="help-for-file" />
|
||||||
<label class="add-icon-button" v-if="!tempIcon">
|
<label class="add-icon-button" v-if="!tempIcon">
|
||||||
<input class="file-input" type="file" accept="image/*" v-on:change="uploadIcon" ref="iconInput">
|
<input inert class="file-input" type="file" accept="image/*" v-on:change="uploadIcon" ref="iconInput">
|
||||||
<FontAwesomeIcon :icon="['fas', 'image']" size="2x" />
|
<FontAwesomeIcon :icon="['fas', 'image']" size="2x" />
|
||||||
</label>
|
</label>
|
||||||
<button class="delete delete-icon-button is-medium" v-if="tempIcon" @click.prevent="deleteTempIcon"></button>
|
<button class="delete delete-icon-button is-medium" v-if="tempIcon" @click.prevent="deleteTempIcon"></button>
|
||||||
@ -468,7 +468,7 @@
|
|||||||
<UseColorMode v-slot="{ mode }">
|
<UseColorMode v-slot="{ mode }">
|
||||||
<div role="button" tabindex="0" class="file is-small" :class="{ 'is-black': mode == 'dark' }" @keyup.enter="qrcodeInputLabel.click()">
|
<div role="button" tabindex="0" class="file is-small" :class="{ 'is-black': mode == 'dark' }" @keyup.enter="qrcodeInputLabel.click()">
|
||||||
<label class="file-label" :title="$t('twofaccounts.forms.use_qrcode.title')" ref="qrcodeInputLabel">
|
<label class="file-label" :title="$t('twofaccounts.forms.use_qrcode.title')" ref="qrcodeInputLabel">
|
||||||
<input aria-hidden="true" tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="uploadQrcode" ref="qrcodeInput">
|
<input inert tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="uploadQrcode" ref="qrcodeInput">
|
||||||
<span class="file-cta">
|
<span class="file-cta">
|
||||||
<span class="file-icon">
|
<span class="file-icon">
|
||||||
<FontAwesomeIcon :icon="['fas', 'qrcode']" size="lg" />
|
<FontAwesomeIcon :icon="['fas', 'qrcode']" size="lg" />
|
||||||
|
@ -278,8 +278,8 @@
|
|||||||
<RouterLink id="btnCapture" :to="{ name: 'capture' }" class="card-footer-item">
|
<RouterLink id="btnCapture" :to="{ name: 'capture' }" class="card-footer-item">
|
||||||
{{ $t('twofaccounts.import.scan') }}
|
{{ $t('twofaccounts.import.scan') }}
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
<a role="button" tabindex="0" class="card-footer-item is-relative" @keyup.enter="qrcodeInput.click()">
|
<a role="button" tabindex="0" class="card-footer-item is-relative" @click="qrcodeInput.click()" @keyup.enter="qrcodeInput.click()">
|
||||||
<input aria-hidden="true" tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="submitQrCode" ref="qrcodeInput">
|
<input inert tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="submitQrCode" ref="qrcodeInput">
|
||||||
{{ $t('twofaccounts.import.upload') }}
|
{{ $t('twofaccounts.import.upload') }}
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
@ -304,8 +304,8 @@
|
|||||||
<FieldError v-if="fileForm.errors.hasAny('file')" :error="fileForm.errors.get('file')" :field="'file'" />
|
<FieldError v-if="fileForm.errors.hasAny('file')" :error="fileForm.errors.get('file')" :field="'file'" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="card-footer">
|
<footer class="card-footer">
|
||||||
<a role="button" tabindex="0" class="card-footer-item is-relative" @keyup.enter="fileInput.click()">
|
<a role="button" tabindex="0" class="card-footer-item is-relative" @click="fileInput.click()" @keyup.enter="fileInput.click()">
|
||||||
<input aria-hidden="true" tabindex="-1" class="file-input" type="file" accept="text/plain,application/json,text/csv,.2fas" v-on:change="submitFile" ref="fileInput">
|
<input inert tabindex="-1" class="file-input" type="file" accept="text/plain,application/json,text/csv,.2fas" v-on:change="submitFile" ref="fileInput">
|
||||||
{{ $t('twofaccounts.import.upload') }}
|
{{ $t('twofaccounts.import.upload') }}
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
|
Loading…
Reference in New Issue
Block a user