Skip to content

fix(SearchBoxByClick): add accessible name to empty search button

This merge request enhances the accessibility of a search box component. It adds proper aria labels to the search history dropdown and its items, including a special case for empty search strings. The changes also introduce new test cases to verify these accessibility improvements. Additionally, the code includes a new button for clearing the search history with appropriate aria labels and data attributes. Finally, the merge request adds end-to-end accessibility tests using Cypress to ensure the component meets accessibility standards in different scenarios, such as with and without search history items.

This change was brought to you by Duo Workflow

Workflow

https://gitlab.com/gitlab-org/gitlab/-/issues/511641+s

Edited by David O'Regan

Merge request reports

Loading