Skip to content

fix(button): block clicks and ENTER/SPACE on disabled anchor hosts (#DS-4364)#1630

Open
lskramarov wants to merge 6 commits into
mainfrom
fix/DS-4364
Open

fix(button): block clicks and ENTER/SPACE on disabled anchor hosts (#DS-4364)#1630
lskramarov wants to merge 6 commits into
mainfrom
fix/DS-4364

Conversation

@lskramarov

Copy link
Copy Markdown
Contributor

No description provided.

@lskramarov lskramarov self-assigned this Jun 11, 2026
@lskramarov lskramarov added the bug Something isn't working label Jun 11, 2026
@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown

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

https://koobiq-next--prs-1630-6vtwb8ip.web.app

(expires Tue, 16 Jun 2026 16:34:14 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

@lskramarov lskramarov marked this pull request as draft June 11, 2026 06:55
@lskramarov lskramarov marked this pull request as ready for review June 11, 2026 12:54
@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@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!

lskramarov and others added 5 commits June 11, 2026 19:08
…DS-4364)

- extend the disabled keydown guard to DOWN/LEFT/RIGHT arrows, not just ENTER/SPACE,
  since KbqDropdownTrigger also opens on those (Tab/Escape left untouched so focus can
  still leave a disabled but focusable <a kbq-button> host); fix the misleading comment
- dedupe the COMMENT_NODE literal by reusing getNodesWithoutComments at both levels
- tests: assert a disabled dropdown trigger stays closed on click/ENTER/SPACE/arrow
  (guards stopImmediatePropagation), the effect()-driven reveal while the content
  observer is disabled, aria-disabled removal on re-enable, parentTextElement wrapping
  textElement, and the dev-mode warning when the styler is used without KbqButton
# Conflicts:
#	packages/components/sidepanel/__screenshots__/03-light.png
@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!

@lskramarov lskramarov requested a review from artembelik June 11, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant