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

[Bug][ChipsSelect][ChipsInput]: имеют ошибки доступности #8138

Open
andrey-medvedev-vk opened this issue Jan 10, 2025 · 0 comments
Labels
a11y Доступность (цифровая) cmp:chips-input cmp:chips-select type:bug

Comments

@andrey-medvedev-vk
Copy link
Contributor

andrey-medvedev-vk commented Jan 10, 2025

Описание

Если в unit-тестах включить проверку доступности, то jest-axe покажет по крайней мере три ошибки

baselineComponent(ChipsSelect, { a11y: false });

  1. listbox не имеет aria-label/labelledby/title
    https://dequeuniversity.com/rules/axe/4.9/aria-input-field-name?application=axeAPI
    Действительно, div с ролью listbox не имеет label, или ассоциированного с ним label.
  2. listbox имеет дочерний элемент combobox, хотя разрешены только option.
    https://dequeuniversity.com/rules/axe/4.9/aria-required-children?application=axeAPI
  3. combobox не имеет ассоциированного label.
    https://dequeuniversity.com/rules/axe/4.9/label?application=axeAPI

Выглядит так, что мы должны подружить listbox и combobox и привязать их к возможному label.
У нас сейчас проставлены роли, но связи и иерархия не соблюдены в полной мере не соблюдены. И дело не только в том, что у нас синтетически рендерится только голый ChipsSelect в тесте.

Версия

7.1.0

В каких браузерах воспроизводится проблема?

No response

Шаги воспроизведения

No response

Ожидаемое поведение

No response

Скриншоты

No response

Пример с воспроизведением

No response

@andrey-medvedev-vk andrey-medvedev-vk added type:bug cmp:chips-select a11y Доступность (цифровая) labels Jan 10, 2025
@github-project-automation github-project-automation bot moved this to 🗃 Backlog in VKUI Jan 10, 2025
@andrey-medvedev-vk andrey-medvedev-vk changed the title [Bug]: ChipsSelect имеет ошибки доступности [Bug][ChipsSelect][ChipsInput]: имеют ошибки доступности Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Доступность (цифровая) cmp:chips-input cmp:chips-select type:bug
Projects
Status: 🗃 Backlog
Development

No branches or pull requests

1 participant