-
Notifications
You must be signed in to change notification settings - Fork 29
NUI 6263 search component accessibility #801
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
base: main
Are you sure you want to change the base?
NUI 6263 search component accessibility #801
Conversation
| (click)="onSearch()" | ||
| ></button> | ||
| </div> | ||
| <input |
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.
will it cause the possible regression? visually it looks the same? I bet the e2e, ui tests may be broken
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.
Visually, it is ok
If you mean tests in CircleCI, they passed...
pavlo-poimanov
left a comment
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.
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 ;)
db8d179 to
a7cca60
Compare
a7cca60 to
02e3e7d
Compare
| } | ||
|
|
||
| @HostListener("keydown", ["$event"]) | ||
| public handleKeydown(event: KeyboardEvent): void { |
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.
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.
20f738e to
3f1c29d
Compare
3f1c29d to
ef1531c
Compare
467efed to
169e3e2
Compare
169e3e2 to
12d0861
Compare
…h-component-accessibility_to_main
f3677bc to
08bb586
Compare


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