Skip to content

NUI 6263 search component accessibility#801

Open
ludmilaFialova wants to merge 23 commits intomainfrom
bugfix/NUI-6263-search-component-accessibility_to_main
Open

NUI 6263 search component accessibility#801
ludmilaFialova wants to merge 23 commits intomainfrom
bugfix/NUI-6263-search-component-accessibility_to_main

Conversation

@ludmilaFialova
Copy link
Contributor

@ludmilaFialova ludmilaFialova commented Jan 14, 2026

https://swicloud.atlassian.net/browse/NUI-6263

ER:

The Search button opens a pop-up when the Spacebar key is pressed.
The expanded search bar closes when the Esc key is pressed.
The buttons have sufficient contrast when focused.

The cancel button next to the Search bar is focusable by the Tab key and is called “Clear search button”

The magnifier icon next to the Search bar is hidden for the screen reader.

The buttons in the “Recent searches” area are accessible by the Tab key. I can get to the search by pressing the Enter or Space bar key. The caret-right icon is hidden.

When returning to some text in the search field, I hear: “Search edit selected all”

https://swicloud.atlassian.net/browse/OO-55517

ER:

The icon will be hidden for the SR. There will be no error in AXE DevTool.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have updated change log
  • I have been following Definition of done
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new lint warnings
  • New and existing unit tests pass locally and on CI with my changes
  • Any dependent changes have been merged and published in downstream modules
image image

(click)="onSearch()"
></button>
</div>
<input
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will it cause the possible regression? visually it looks the same? I bet the e2e, ui tests may be broken

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visually, it is ok
If you mean tests in CircleCI, they passed...

Copy link
Contributor

@pavlo-poimanov pavlo-poimanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image/popup/repeat should be fine but the search I'm not sure this changes will not cause problems. double check if all fine then ok.

also you can be a good camper and do next:

  • make this true standalone components
  • rewrite to signals control flow
  • ngDestory => destroyRef
  • inject() function

first camp fire rule - leave place better than it was before you ;)

pavlo-poimanov
pavlo-poimanov previously approved these changes Jan 26, 2026
@ludmilaFialova ludmilaFialova force-pushed the bugfix/NUI-6263-search-component-accessibility_to_main branch from db8d179 to a7cca60 Compare February 2, 2026 06:27
@ludmilaFialova ludmilaFialova force-pushed the bugfix/NUI-6263-search-component-accessibility_to_main branch from a7cca60 to 02e3e7d Compare February 2, 2026 15:10
}

@HostListener("keydown", ["$event"])
public handleKeydown(event: KeyboardEvent): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think this caused the regression on the menu.
On the keydown enter it had to do ckeckbox checking. See the test.

Image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

in test it waits the menu still be opened

@ludmilaFialova ludmilaFialova force-pushed the bugfix/NUI-6263-search-component-accessibility_to_main branch from 20f738e to 3f1c29d Compare February 5, 2026 13:36
@ludmilaFialova ludmilaFialova force-pushed the bugfix/NUI-6263-search-component-accessibility_to_main branch from 3f1c29d to ef1531c Compare February 5, 2026 14:33
@ludmilaFialova ludmilaFialova force-pushed the bugfix/NUI-6263-search-component-accessibility_to_main branch from ef1531c to fbe421d Compare February 5, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants