aria-live login modal alerts

This commit is contained in:
James Lyne 2021-08-31 15:03:21 +01:00
parent 8deabad47b
commit a82052714d
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
v-model="loginPassword" required />
</div>
<div role="alert" v-if="error" class="form__group alert">{{ error }}</div>
<div v-if="error" role="alert" aria-live="assertive" class="form__group alert">{{ error }}</div>
<div class="form__group">
<button type="submit" :disabled="submitting">{{ loginSubmit }}</button>

View File

@ -43,7 +43,7 @@
<input id="register-code" type="text" name="code" v-model="valueCode" required />
</div>
<div role="alert" v-if="error" class="form__group alert">{{ error }}</div>
<div v-if="error" role="alert" aria-live="assertive" class="form__group alert">{{ error }}</div>
<div class="form__group">
<button type="submit" :disabled="submitting">{{ messageSubmit }}</button>