1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-07 01:19:57 +00:00

feat(a11y): improve dropdown item and action button accessiblity (#251)

This commit is contained in:
Alex 2022-11-30 21:00:54 +08:00 committed by GitHub
parent e11bf53f86
commit e0a1ceea43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -45,6 +45,7 @@ useCommand({
v-bind="$attrs" ref="el"
flex gap-3 items-center cursor-pointer px4 py3
hover-bg-active
:aria-label="text"
@click="handleClick"
>
<div v-if="icon" :class="icon" />

View file

@ -45,9 +45,10 @@ useCommand({
v-bind="$attrs" ref="el"
w-fit flex gap-1 items-center
rounded group :hover="hover"
focus:outline-none
focus:outline-none cursor-pointer
:focus-visible="hover"
:class="active ? [color] : 'text-secondary'"
:aria-label="content"
>
<CommonTooltip placement="bottom" :content="content">
<div rounded-full p2 :group-hover="groupHover" :group-focus-visible="groupHover" group-focus-visible:ring="2 current">