Aria label for close button on tags of taginput. #3.

This commit is contained in:
Mateus Machado Luna 2019-08-09 14:04:57 -03:00
parent a0969a97b7
commit 2c7c7cbff0
5 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,7 @@
field="label" field="label"
attached attached
@typing="search" @typing="search"
:aria-close-label="$i18n.get('remove_value')"
:aria-labelledby="labelId" :aria-labelledby="labelId"
:placeholder="(type == 'Tainacan\\Metadata_Types\\Relationship') ? $i18n.get('info_type_to_search_items') : $i18n.get('info_type_to_add_metadata')"> :placeholder="(type == 'Tainacan\\Metadata_Types\\Relationship') ? $i18n.get('info_type_to_search_items') : $i18n.get('info_type_to_add_metadata')">
<template slot-scope="props"> <template slot-scope="props">

View File

@ -11,6 +11,7 @@
:remove-on-keys="[]" :remove-on-keys="[]"
field="label" field="label"
attached attached
:aria-close-label="$i18n.get('remove_value')"
:aria-labelledby="labelId" :aria-labelledby="labelId"
:class="{'has-selected': selected != undefined && selected != []}" :class="{'has-selected': selected != undefined && selected != []}"
@typing="search" @typing="search"

View File

@ -10,6 +10,7 @@
autocomplete autocomplete
attached attached
:loading="loading" :loading="loading"
:aria-close-label="$i18n.get('remove_value')"
:class="{'has-selected': selected != undefined && selected != []}" :class="{'has-selected': selected != undefined && selected != []}"
field="label" field="label"
@typing="search"/> @typing="search"/>

View File

@ -16,6 +16,7 @@
@input="emitValues()" @input="emitValues()"
@focus="clear()" @focus="clear()"
attached attached
:aria-close-label="$i18n.get('remove_value')"
:class="{'has-selected': options != undefined && options != []}" :class="{'has-selected': options != undefined && options != []}"
:placeholder="$i18n.get('new') + ', ...'"/> :placeholder="$i18n.get('new') + ', ...'"/>
</b-field> </b-field>

View File

@ -13,6 +13,7 @@
field="label" field="label"
attached attached
ellipsis ellipsis
:aria-close-label="$i18n.get('remove_value')"
:placeholder="$i18n.get('instruction_type_existing_term')" :placeholder="$i18n.get('instruction_type_existing_term')"
:loading="isFetching" :loading="isFetching"
:class="{'has-selected': selected != undefined && selected != []}" :class="{'has-selected': selected != undefined && selected != []}"