Skip to content

feat: add pressed state to option/tree/dropdown items (#DS-3482)#1779

Open
lskramarov wants to merge 3 commits into
mainfrom
feat/DS-3482
Open

feat: add pressed state to option/tree/dropdown items (#DS-3482)#1779
lskramarov wants to merge 3 commits into
mainfrom
feat/DS-3482

Conversation

@lskramarov

Copy link
Copy Markdown
Contributor

No description provided.

@lskramarov lskramarov self-assigned this Jul 24, 2026
@lskramarov lskramarov added the enhancement New feature or request label Jul 24, 2026
@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 4f56d01):

https://koobiq-next--prs-1779-vvm4rhu3.web.app

(expires Mon, 27 Jul 2026 12:05:44 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@lskramarov

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

Copy link
Copy Markdown

✅ Snapshots updated!

@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@lskramarov

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

Copy link
Copy Markdown

✅ Snapshots updated!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “pressed” visual state across option-like UI elements (tree options, tree-select options, select options, list items, dropdown items, and app-switcher items) and expands e2e coverage to capture the new state in screenshots.

Changes:

  • Added pressed/active styling rules (:active and state classes like .kbq-active / .kbq-pressed) to component theme SCSS to apply the correct background tokens.
  • Updated e2e fixtures to expose “pressed” state cases for visual regression coverage.
  • Added new Playwright screenshot tests for pressed states in tree-select and app-switcher.

Reviewed changes

Copilot reviewed 13 out of 30 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/components/tree/e2e.ts Adds “Active” / “SelectedActive” state rows and binds .kbq-active for tree pressed state fixtures.
packages/components/tree/_tree-theme.scss Implements active/pressed background styling for tree options (single + selected + multiple-selected cases).
packages/components/tree-select/e2e.playwright-spec.ts Adds Playwright visual tests covering pressed state in tree-select (single + multi).
packages/components/tree-select/_tree-select-theme.scss Adds pressed styling rules with specificity adjustments so pressed wins over hover.
packages/components/select/e2e.ts Adds a pressed option fixture (.kbq-pressed) and adjusts layout height for screenshots.
packages/components/list/_list-theme.scss Fixes active/selected-active backgrounds without emitting undefined token variables from mixins.
packages/components/dropdown/e2e.ts Adds pressed and selected+pressed dropdown item fixtures.
packages/components/dropdown/_dropdown-theme.scss Adds pressed styling for dropdown items (:active / .kbq-active) including selected+pressed.
packages/components/core/option/_option-theme.scss Adds .kbq-pressed / :active background styling for options, including selected and multiple-selected variants.
packages/components/app-switcher/kbq-app-switcher-list-item.scss Aligns hover/active/selected backgrounds with list state tokens.
packages/components/app-switcher/e2e.playwright-spec.ts Adds Playwright visual tests covering pressed state in app-switcher.
packages/components/app-switcher/app-switcher-dropdown-site.scss Adjusts hover vs pressed backgrounds and adds explicit pressed selectors.
packages/components/app-switcher/app-switcher-dropdown-app.scss Adjusts hover vs pressed backgrounds and adds explicit pressed selectors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants