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
feat: aria-label и role у компонентов #1611
Conversation
eugpoloz
commented
May 19, 2021
- Добавила aria-метки и роли там, где они нужны, в компонентах и в документации,
- Изменила некоторые div на более подходящие теги.
size-limit report 📦
|
👀 Styleguide deployedSee the styleguide for this PR at https://vkcom.github.io/VKUI/pull/1611/ |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 59662f0:
|
Changed screenshotsCode coverage
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В PR довольно много мест, где aria-label зашит внутри компонента без возможности его переопределить. Учитывая, что наши приложения переводятся на разные языки, мы не можем себе такой хардкод позволить.
Поэтому я предлагаю компоненты вроде Checkbox, Search и Cell фиксить отдельно в рамках нашей задачи по доступности. У react-aria есть специальные хуки для большинства кейсов. И эта либа так же решает проблему локализации.
29b35bb
to
7c99a85
Compare
clean up markup to get it to match standart lib code
dcc3458
to
b7fa920
Compare
А посмотрите, пожалуйста, как можно исправить подобные случаи? Приложение Люди рядом (userlocation), около имени и фамилии есть значок отправить уведомление. Он никак в отдельную кнопку не выделяется и даже клавиатурный фокус на неё не попадает. |