-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
h2. Описание > [!NOTE] > см. #4143 (comment) > > Добавил логику работы `ChipsInput`/`ChipsSelect` в описание задачи #4143 (comment). Проверил `ChipsSelect` и `ChipsInput` в **NVDA** и нашёл причину почему он не видит компоненты – причиной был скрытый текст для визуальной доступности, который располагался прямо перед полем ввода. Оно осталось со старой реализации, думал так и надо. Я удалил этот скрытый текст, т.к. его содержание должно быть в атрибуте `placeholder`, который есть у текстовых полей. Удалили параметр `inputLabel`. По ходу дела изменил некоторое поведение (ориентировался на пример из https://material.angular.io/components/chips/overview#chips-autocomplete): - Смена фокуса при удалении чипа. - Если чип один, то удаление этого чип перенесет фокус на текстовое поле. - Если чипов несколько, то после удаление одного из них фокус перенесется на ближайший чип. Если удалили с конца, то на последний чип, если удалили в начале, то на следующий чип. - Нажатии на **Backpace** будучи в пустом текстовом поле – перенесёт фокус на последний чип. - Иконка с шевроном верх/вниз теперь чисто декоративная. Удалил параметр `getIconLabel`. h2. Изменения - В `src/testing/utils` добавил функцию `withRexExp` – если передать в параметр `name` в селектора типа `getByRole('option', { name: '<string>' });`, то DOM-элемент не находится. Исправляет оборачивание в регулярку `getByRole('option', { name: new RegExp('<string>') });`
- Loading branch information
Showing
19 changed files
with
312 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.