Skip to content

fix(toolbar): add back disabled support to toolbar buttons - #740

Merged
mattrothenberg merged 1 commit into
cloudflare:mainfrom
nandanmen:nanda/fix-toolbar-button-disabled
Aug 19, 2026
Merged

fix(toolbar): add back disabled support to toolbar buttons#740
mattrothenberg merged 1 commit into
cloudflare:mainfrom
nandanmen:nanda/fix-toolbar-button-disabled

Conversation

@nandanmen

@nandanmen nandanmen commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Fixes a bug in Toolbar.Button where toolbar buttons cannot be disabled. This was causing a failing test in the main dashboard.


  • Reviews
    • bonk has reviewed the change
    • automated review not possible because:
  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:

@pkg-pr-new

pkg-pr-new Bot commented Aug 19, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@cloudflare/kumo@740

commit: d86676c

@github-actions

Copy link
Copy Markdown
Contributor

Docs Preview

View docs preview

Commit: d86676c

@github-actions

Copy link
Copy Markdown
Contributor
Visual Regression Report — 4 changed, 4 unchanged

4 screenshot(s) with visual changes:

Toolbar / Toolbar Select

1,077 px (1.22%) changed

Before After Diff
Before After Diff

Toolbar / Toolbar Sizes

4,641 px (3.02%) changed

Before After Diff
Before After Diff

Toolbar / Toolbar Actions

1,208 px (1.36%) changed

Before After Diff
Before After Diff

Toolbar / Toolbar Labels

1,682 px (1.9%) changed

Before After Diff
Before After Diff
4 screenshot(s) unchanged
  • Toolbar / Toolbar
  • Toolbar / Toolbar Combobox
  • Toolbar / Toolbar Mixed Controls
  • Toolbar / Toolbar Input Group

Generated by Kumo Visual Regression

@mattrothenberg

Copy link
Copy Markdown
Collaborator

/bonk review and approve

@ask-bonk ask-bonk Bot 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.

Clean, focused fix. The single-line change correctly pipes disabled (and loading) to ToolbarBase.Button so Base UI can manage aria-disabled and roving focus semantics.

The three new browser tests cover the right surface area:

  • Disabled state exposure and interaction blocking
  • Loading state causing disablement
  • focusableWhenDisabled roving focus behavior

Changeset is properly scoped as a patch. LGTM.

@ask-bonk

ask-bonk Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Approved PR #740 (fix(toolbar): add back disabled support to toolbar buttons).

Review summary:

  • Fix: One-line change adding disabled={loading || disabled} to ToolbarBase.Button so Base UI correctly manages aria-disabled and roving focus semantics.
  • Tests: Three new browser tests covering disabled state exposure, loading-state disablement, and focusableWhenDisabled roving focus behavior — all pass and cover the bug surface well.
  • Changeset: Properly scoped as a patch.

No issues found. The fix is minimal, correct, and well-tested.

github run

@mattrothenberg
mattrothenberg merged commit ef13cb4 into cloudflare:main Aug 19, 2026
18 of 20 checks passed
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