Skip to content

feat(CheckboxGroup): add max prop - #7145

Merged
benjamincanac merged 48 commits into
v4from
feat/checkbox-group-max
Oct 7, 2026
Merged

benjamincanac merged 48 commits into
v4from
feat/checkbox-group-max

Conversation

@benjamincanac

@benjamincanac benjamincanac commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked issue

Replaces #7130, which GitHub marked as merged when the stack was reordered.

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Reka UI 2.11 adds a max prop to CheckboxGroupRoot (unovue/reka-ui#2058). Once the limit is reached the unchecked checkboxes get aria-disabled but stay focusable, they are not natively disabled.

This forwards max from CheckboxGroup. Since those checkboxes have no disabled attribute, Checkbox reads the group context and applies its disabled variant when the limit is reached, so they look the same as disabled ones and theme overrides of that variant apply.

The shared hover selector in the checkbox theme also excludes aria-disabled so a blocked card or table item does not highlight on hover. RadioGroup uses the same selector, which is why its snapshots change. It never matches there.

The highlight border with a hidden indicator and the cursor of a table item follow the same rule, so a blocked item looks like a disabled one in every variant.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@benjamincanac
benjamincanac merged commit 63a0c05 into v4 Oct 7, 2026
35 checks passed
@benjamincanac
benjamincanac deleted the feat/checkbox-group-max branch October 7, 2026 12:05

This branch was successfully deployed

2 active deployments
Preview – ui — 9a929faa Deployed Oct 7, 2026 by vercel[bot]
Preview – ui-repl — 9a929faa Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant