More acessibilities improvements. Ref. #3.

This commit is contained in:
Mateus Machado Luna 2018-12-20 15:28:47 -02:00
parent 1c5484990a
commit db72e096b9
3 changed files with 6 additions and 4 deletions

View File

@ -27,6 +27,7 @@
class="is-hidden-mobile"
id="filter-menu-compress-button"
:style="{ top: !isOnTheme ? (isRepositoryLevel ? '172px' : '120px') : '76px' }"
:aria-label="isFiltersMenuCompressed ? $i18n.get('label_show_filters') : $i18n.get('label_hide_filters')"
@click="isFiltersMenuCompressed = !isFiltersMenuCompressed">
<span class="icon">
<i
@ -40,6 +41,7 @@
class="is-hidden-tablet"
id="filter-menu-compress-button-mobile"
:style="{ top: !isOnTheme ? (isRepositoryLevel ? (searchControlHeight + 100) : (searchControlHeight + 70) + 'px') : (searchControlHeight - 25) + 'px' }"
:aria-label="isFiltersMenuCompressed ? $i18n.get('label_show_filters') : $i18n.get('label_hide_filters')"
@click="isFilterModalActive = !isFilterModalActive">
<span class="icon">
<i
@ -67,7 +69,6 @@
class="input is-small"
:placeholder="$i18n.get('instruction_search')"
type="search"
autocomplete="on"
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('items')"
:value="searchQuery"
@input="futureSearchQuery = $event.target.value"
@ -475,7 +476,6 @@
class="input is-small"
:placeholder="$i18n.get('instruction_search')"
type="search"
autocomplete="on"
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('items')"
:value="searchQuery"
@input="futureSearchQuery = $event.target.value"

View File

@ -26,6 +26,7 @@
v-if="!openAdvancedSearch && !(registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen)"
class="is-hidden-mobile"
id="filter-menu-compress-button"
:aria-label="isFiltersMenuCompressed ? $i18n.get('label_show_filters') : $i18n.get('label_hide_filters')"
:style="{ top: !isOnTheme ? (isRepositoryLevel ? '172px' : '120px') : '76px' }"
@click="isFiltersMenuCompressed = !isFiltersMenuCompressed">
<span class="icon">
@ -39,6 +40,7 @@
v-if="!openAdvancedSearch && !(registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen)"
class="is-hidden-tablet"
id="filter-menu-compress-button-mobile"
:aria-label="isFiltersMenuCompressed ? $i18n.get('label_show_filters') : $i18n.get('label_hide_filters')"
:style="{ top: !isOnTheme ? (isRepositoryLevel ? (searchControlHeight + 100) : (searchControlHeight + 70) + 'px') : (searchControlHeight - 25) + 'px' }"
@click="isFilterModalActive = !isFilterModalActive">
<span class="icon">
@ -66,7 +68,6 @@
class="input is-small"
:placeholder="$i18n.get('instruction_search')"
type="search"
autocomplete="on"
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('items')"
:value="searchQuery"
@input="futureSearchQuery = $event.target.value"
@ -452,7 +453,6 @@
class="input is-small"
:placeholder="$i18n.get('instruction_search')"
type="search"
autocomplete="on"
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('items')"
:value="searchQuery"
@input="futureSearchQuery = $event.target.value"

View File

@ -28,6 +28,7 @@
size="is-small"
type="number"
step="any"
autocomplete="off"
@input="validate_values()"
v-model="value_init"/>
<p class="is-size-7 has-text-centered is-marginless">{{ $i18n.get('label_until') }}</p>
@ -36,6 +37,7 @@
size="is-small"
type="number"
step="any"
autocomplete="off"
@input="validate_values()"
@focus="isTouched = true"
v-model="value_end"/>