-
Notifications
You must be signed in to change notification settings - Fork 274
refactor(ui5-shellbar): extend mobile support for search field #11419
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?
Conversation
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.
Pull Request Overview
This PR refactors the ShellBar component to extend mobile support for the search field and to comply with updated UX specifications. Key changes include updating the search field behavior for mobile devices, adding event handlers for ui5-open/ui5-close/ui5-search events, and introducing new mobile tests.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
packages/fiori/src/ShellBar.ts | Refactored search field properties and event handling to prevent full-width expansion on mobile. |
packages/fiori/cypress/specs/ShellBar.mobile.cy.tsx | Added new mobile test cases targeting search field state and behavior. |
packages/fiori/cypress/specs/ShellBar.cy.tsx | Updated test cases to use the new ShellBarSearch component. |
Improved the ShellBar component's search field behavior to align with UX specifications and support responsive, mobile interactions.
Summary of Changes
Event Handling: Added support for ui5-open, ui5-close, and ui5-search events to dynamically manage
show-search-field
state.Testing Enhancements: Added a dedicated mobile test suite (ShellBar.mobile.cy.tsx) and updated existing tests to reflect the component changes.