Skip to content

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

dobrinyonkov
Copy link
Contributor

@dobrinyonkov dobrinyonkov commented Apr 28, 2025

Improved the ShellBar component's search field behavior to align with UX specifications and support responsive, mobile interactions.

Summary of Changes

  • UX Compliance: Prevented the search field from opening in full-width mode by default; initial showSearchField state is now set to false unless triggered.
image
  • 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.

@dobrinyonkov dobrinyonkov changed the title refactor(ui5-shellbar): prevent full width search initially refactor(ui5-shellbar): extend mobile support for search field Apr 29, 2025
@dobrinyonkov dobrinyonkov requested a review from Copilot May 7, 2025 08:07
Copy link
Contributor

@Copilot Copilot AI left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants