Akryum / Akryum/floating-vue

Accessibility: the active tooltip loses the ability to dismiss it with "escape" key when autoHide: true and noAutoFocus: true

Aberta
#1,027 1 comentário 2 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
3.5k
Forks
341
Merge médio
14min
PRs com merge (30d)
8

Descrição

After some searching, I found that v-tooltip is able to be dismissed when `autoHide: true` (reference: https://github.com/Akryum/floating-vue/issues/159)

I also found that when tab-navigating to links or non-semantic HTML elements that use tabindex="0", we're now able to prevent the focus from shifting to the tooltip itself by setting `noAutoFocus: true`, which is great for accessibility because it doesn't lose meaningful sequence when tabbing through the DOM elements. (reference: https://github.com/Akryum/floating-vue/issues/872)

The problem is when these two settings are combined, escaping to hide the tooltip no longer works.

Just wondering if there was a way around this natively that I might've missed.

Thanks for the great library :)

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.