Fixed aria combobox attributes
This commit is contained in:
@@ -35,6 +35,8 @@ const filteredCategories = computed(() =>
|
|||||||
<UiButton
|
<UiButton
|
||||||
variant="outline"
|
variant="outline"
|
||||||
role="combobox"
|
role="combobox"
|
||||||
|
:aria-expanded="isPopoverOpen"
|
||||||
|
aria-controls="event-categories"
|
||||||
class="relative w-full max-w-full h-fit justify-between"
|
class="relative w-full max-w-full h-fit justify-between"
|
||||||
>
|
>
|
||||||
<template v-if="!model.length">
|
<template v-if="!model.length">
|
||||||
@@ -54,12 +56,13 @@ const filteredCategories = computed(() =>
|
|||||||
</UiButton>
|
</UiButton>
|
||||||
</UiPopoverTrigger>
|
</UiPopoverTrigger>
|
||||||
<UiPopoverContent
|
<UiPopoverContent
|
||||||
|
id="event-categories"
|
||||||
align="start"
|
align="start"
|
||||||
side="bottom"
|
side="bottom"
|
||||||
:collision-padding="50"
|
:collision-padding="50"
|
||||||
class="w-fit h-[33vh] p-0"
|
class="w-fit h-[33vh] p-0"
|
||||||
>
|
>
|
||||||
<UiCommand v-model="modelBuffer" v-model:searchTerm="searchTerm" :multiple="true">
|
<UiCommand v-model="modelBuffer" v-model:search-term="searchTerm" :multiple="true">
|
||||||
<UiCommandInput :placeholder="$t('entity.category.search')" />
|
<UiCommandInput :placeholder="$t('entity.category.search')" />
|
||||||
<UiCommandEmpty>{{ $t('entity.category.notFoundAny') }}</UiCommandEmpty>
|
<UiCommandEmpty>{{ $t('entity.category.notFoundAny') }}</UiCommandEmpty>
|
||||||
<UiCommandList>
|
<UiCommandList>
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ const filteredCategories = computed(() =>
|
|||||||
<UiButton
|
<UiButton
|
||||||
variant="outline"
|
variant="outline"
|
||||||
role="combobox"
|
role="combobox"
|
||||||
|
:aria-expanded="isPopoverOpen"
|
||||||
|
aria-controls="event-category"
|
||||||
class="w-full max-w-full justify-between"
|
class="w-full max-w-full justify-between"
|
||||||
>
|
>
|
||||||
<template v-if="!model">
|
<template v-if="!model">
|
||||||
@@ -52,6 +54,7 @@ const filteredCategories = computed(() =>
|
|||||||
</UiButton>
|
</UiButton>
|
||||||
</UiPopoverTrigger>
|
</UiPopoverTrigger>
|
||||||
<UiPopoverContent
|
<UiPopoverContent
|
||||||
|
id="event-category"
|
||||||
align="start"
|
align="start"
|
||||||
side="bottom"
|
side="bottom"
|
||||||
:collision-padding="50"
|
:collision-padding="50"
|
||||||
|
|||||||
Reference in New Issue
Block a user