Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Button] Не показывается рамка фокуса при программной фокусировке IF-638 #2091

Open
nulladdict opened this issue Aug 11, 2020 · 1 comment
Labels
a11y Issues related to a11y of components bug enhancement intern

Comments

@nulladdict
Copy link
Contributor

Фокус в кнопке трекается с помощью js и не отлавливает ситуацию, когда кнопку зафокусили с помощью element.focus() в качестве восстановления фокуса при закрытии модалки/сайдпеджа

Текущая реализация полифила :focus-visible показывает фокус при закрытии с помощью клавиатуры

Тред про это: WICG/focus-visible#88

@zhzz
Copy link
Member

zhzz commented Aug 12, 2020

Было бы неплохо переехать на :focus-visible во всех компонентах. Но пока не понятно, как заиспользовать этот полифил в библиотеке, ведь он модифицирует весь DOM, и пока не поддерживает кастомный scope.

@zhzz zhzz added the intern label Aug 18, 2020
@zhzz zhzz added the bug label Sep 7, 2021
@JackUait JackUait added the a11y Issues related to a11y of components label Feb 10, 2022
@dzekh dzekh changed the title [Button] Не показывается рамка фокуса при программной фокусировке [Button] Не показывается рамка фокуса при программной фокусировке IF-638 Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Issues related to a11y of components bug enhancement intern
Development

No branches or pull requests

3 participants