Fix some accessibility issues

This commit is contained in:
Bubka
2022-09-10 17:59:52 +02:00
parent cc70fdacf6
commit 4348b7067b
7 changed files with 16 additions and 14 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="field" :class="{ 'pt-3' : hasOffset }">
<label class="label" v-html="label"></label>
<label :for="this.inputId(inputType,fieldName)" class="label" v-html="label"></label>
<div class="control">
<input :disabled="isDisabled" :id="this.inputId(inputType,fieldName)" :type="inputType" class="input" v-model="form[fieldName]" :placeholder="placeholder" v-bind="$attrs" v-on:change="$emit('field-changed', form[fieldName])"/>
</div>