Skip to content

Conversation

@ndeshev
Copy link
Contributor

@ndeshev ndeshev commented Oct 1, 2025

Add Actions Slot Support to ui5-search

This update adds a new actions slot to ui5-search-item component, 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

@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Oct 1, 2025

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 1, 2025 07:07 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 8, 2025 11:21 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 8, 2025 16:54 Inactive
@ndeshev ndeshev marked this pull request as ready for review October 27, 2025 10:24
@ndeshev ndeshev requested a review from Copilot October 27, 2025 10:24
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 27, 2025 10:24 Inactive
Copy link
Contributor

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 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 actions slot to ui5-search-item with 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

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 27, 2025 10:33 Inactive
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