-
Couldn't load subscription status.
- Fork 280
feat(ui5-search) add actions to search items #12405
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
BGSOFUIRILA-4120
97cafe8 to
fb90610
Compare
|
🚀 Deployed on https://pr-12405--ui5-webcomponents-preview.netlify.app |
add tab navigation add tests
…onents into search-item-icon
implement tab navigation looping for search item action buttons
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 adds a new actions slot to the ui5-search-item component, enabling developers to include interactive elements (buttons, icons, tags) alongside the delete button. The implementation includes keyboard navigation support with Tab/Shift+Tab cycling through action elements and focus management within search items using F2 for navigation entry.
Key Changes:
- Added
actionsslot toui5-search-itemwith JSDoc documentation - Implemented tab navigation with focus looping between action buttons and delete button
- Added comprehensive Cypress tests covering various tab navigation scenarios
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/fiori/src/SearchItem.ts | Adds actions slot, implements _handleTabNavigation() method for focus management, and updates keyboard event handling |
| packages/fiori/src/SearchItemTemplate.tsx | Adds template rendering for actions slot with conditional display |
| packages/fiori/src/themes/SearchItem.css | Adds styling for actions container with hover/focus-within visibility and flexbox layout |
| packages/fiori/test/pages/Search.html | Adds demo examples showcasing various action slot configurations |
| packages/fiori/cypress/specs/Search.cy.tsx | Adds comprehensive test coverage for tab navigation, focus looping, and action button interactions |
Add Actions Slot Support to
ui5-searchThis update adds a new
actionsslot toui5-search-itemcomponent, allowing developers to place interactive elements like buttons or icons alongside the delete button. The feature includes keyboard navigation support and focus management - when users navigate through action elements with Tab, focus cycles within the search item elements.BGSOFUIRILA-4120