فهرست منبع

Use inert attribute in place of aria-hidden

Bubka 8 ماه پیش
والد
کامیت
f6c090781e
2فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 2 2
      resources/js/views/twofaccounts/CreateUpdate.vue
  2. 4 4
      resources/js/views/twofaccounts/Import.vue

+ 2 - 2
resources/js/views/twofaccounts/CreateUpdate.vue

@@ -425,7 +425,7 @@
                     <div class="column">
                         <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">
-                            <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" />
                         </label>
                         <button class="delete delete-icon-button is-medium" v-if="tempIcon" @click.prevent="deleteTempIcon"></button>
@@ -468,7 +468,7 @@
                         <UseColorMode v-slot="{ mode }">
                             <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">
-                                    <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-icon">
                                             <FontAwesomeIcon :icon="['fas', 'qrcode']" size="lg" />

+ 4 - 4
resources/js/views/twofaccounts/Import.vue

@@ -278,8 +278,8 @@
                                     <RouterLink id="btnCapture" :to="{ name: 'capture' }" class="card-footer-item">
                                         {{ $t('twofaccounts.import.scan') }}
                                     </RouterLink>
-                                    <a role="button" tabindex="0" class="card-footer-item is-relative" @keyup.enter="qrcodeInput.click()">
-                                        <input aria-hidden="true" tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="submitQrCode" ref="qrcodeInput">
+                                    <a role="button" tabindex="0" class="card-footer-item is-relative" @click="qrcodeInput.click()" @keyup.enter="qrcodeInput.click()">
+                                        <input inert tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="submitQrCode" ref="qrcodeInput">
                                         {{ $t('twofaccounts.import.upload') }}
                                     </a>
                                 </footer>
@@ -304,8 +304,8 @@
                                     <FieldError v-if="fileForm.errors.hasAny('file')" :error="fileForm.errors.get('file')" :field="'file'" />
                                 </div>
                                 <footer class="card-footer">
-                                    <a role="button" tabindex="0" class="card-footer-item is-relative" @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">
+                                    <a role="button" tabindex="0" class="card-footer-item is-relative" @click="fileInput.click()" @keyup.enter="fileInput.click()">
+                                        <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') }}
                                     </a>
                                 </footer>