Description
Feature Request Description
The current search field in the ui5-shellbar is collapsed by default. We are requesting for the option to have the search expanded on initial load. We are currently achieving this for our use case by setting the show-search-field attribute in the shellbar, however, because show-search-field is a private API and not built for this use case, it does not fulfill accessibility requirements.
This is the original issue that was filed for the accessibility requirement to be fulfilled #5674.
The issue is that "Search button expanded" is read upon focus of the search button in the shell bar. When the search input is visible by default, this causes confusion because the user did not take any action to expand the search input.
Proposed Solution
Ideally, the solution would be to implement the search button as a toggle button https://sap.github.io/ui5-webcomponents/playground/components/ToggleButton/ so that "pressed" and "unpressed" states are read instead of "expanded" and "collapsed" since it is usually expected that expanded content has some sort of text or menu.
Proposed Alternatives
If the above is not possible, then a way to customize or set the aria-expanded value or customize the aria label for the search button would also suffice.
Additional Context
Steps to reproduction:
- Go to https://stackblitz.com/edit/js-6v9yvk?file=index.js,index.html.
- Turn on JAWS screen reader
- Navigate to the search button on the first example of the shell bar using your keyboard
- Observe that "Search button expanded" is read
Priority
- Low
- Medium
- High
- Very High
A clear and concise description of the impact/urgency of the required feature.
Stakeholder Info (if applicable)
- Organization: SAP SuccessFactors
- Business impact: Accessibility
Metadata
Metadata
Assignees
Type
Projects
Status