Skip to content

Conversation

@johnleider
Copy link
Member

@johnleider johnleider commented Jan 5, 2026

In development

Copilot AI review requested due to automatic review settings January 5, 2026 03:00
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 5, 2026

Open in StackBlitz

commit: e3cb534

This comment was marked as spam.

@vuetifyjs vuetifyjs deleted a comment from Copilot AI Jan 5, 2026
@johnleider johnleider marked this pull request as draft January 5, 2026 23:01
@johnleider johnleider added this to the v0.1.0 milestone Jan 8, 2026
- CheckboxRoot: group context provider with tri-state support
- CheckboxIndicator: works standalone (v-model) or in group context
- Renders as button by default, supports renderless mode
- Full a11y: role, aria-checked (true/false/mixed), aria-disabled, tabindex
- 35 tests covering standalone, group, SSR modes
- Rename CheckboxRoot → CheckboxGroup (group context provider)
- New CheckboxRoot handles registration + item context
- CheckboxIndicator now purely presentational
- Export as Checkbox.Group, Checkbox.Root, Checkbox.Indicator
- Add keyboard interaction (Space to toggle) and click handler
- Add aria-label from label prop for accessible name
- Add role="group" to CheckboxGroup attrs
- Fix slot return type: any → unknown
- Fix context mode: use static key 'v0:checkbox:root'
- Fix data-disabled: '' → true for consistency
- Use Readonly<Ref<boolean>> for context types
- Add defineEmits alongside defineModel
- Change slot return types to match Root/Item convention
- Add keyboard interaction tests (Space, Enter, disabled)
- Add component docs with basic, group, and select-all examples
Reorganize checkbox documentation from providers to new forms category.
Import was referencing non-existent #v0/composables/useGroup path,
causing typecheck to fail. Also adds test for Indicator context error.

Fixes knip config to ignore tsx binary used by generate:web-types script.
…ers element

Root now renders as button via Atom with ARIA attrs and click/keydown handlers.
Indicator simplified to visual span with visibility toggle (no layout shift).
Group now renders div with role="group" and aria-multiselectable.
- Simplify basic.vue and group.vue to use data-state CSS selectors
- Remove select-all.vue example (removed from docs)
- Add Checkbox to shiki-api-transformer whitelist for hover popovers
- Reorder component nav: primitives, providers, disclosure, forms, semantic
- Update accessibility section to reflect Root handles ARIA
@johnleider johnleider changed the title feat(Checkbox): add headless checkbox component with dual-mode support feat(Checkbox): add new component Jan 10, 2026
- Add CheckboxHiddenInput component for native form submission
- Auto-render hidden input when `name` prop is provided on Root
- Add `name` and `form` props to CheckboxRoot context
- Fix class pass-through by using inheritAttrs: false with useAttrs()
- Add 12 tests covering auto-render, explicit usage, and group mode
@johnleider johnleider self-assigned this Jan 10, 2026
@johnleider johnleider marked this pull request as ready for review January 10, 2026 02:24
- Make CheckboxRootProps generic for value type propagation
- Add aria-labelledby, aria-describedby, aria-invalid to Root
- Add aria-label, aria-labelledby, aria-describedby to Group
- Change disabled prop to MaybeRef<boolean> for consistency
- Use ID type from #v0/types instead of string
- Export CheckboxState type for data-state attributes
- Normalize slot return types to any (matches Atom convention)
- Add tests for mandatory, enroll, hydration, FormData, batch ops
- Fix emit naming: update:modelValue → update:model-value
- Fix reactive disabled prop using props.disabled directly
- Normalize ARIA prop names to camelCase for TypeScript
- Correct docs: Space key toggles (Enter via native button)
- Add 17 new tests covering: ARIA attrs, keyboard interaction,
  disabled transitions, renderless mode, visibility, and more
- Add Form Integration and Indeterminate State sections to docs
- Fix script tag order to match convention (setup before lang)
- Add @example JSDoc blocks to barrel export sub-components
- Add tests for selectAll with all disabled items
- Add tests for indeterminate prop initialization and mix/unmix
# Conflicts:
#	apps/docs/build/generate-nav.ts
#	apps/docs/src/typed-router.d.ts
- Add level: 2 to checkbox documentation frontmatter
- Regenerate benchmarks and metrics after master merge
- Change CheckboxIndicatorProps from interface to type alias
- Props `as` and `renderless` are inherited from AtomProps
- Add Props Inheritance section to components.md rules
- Add Checkbox to component list in rules
- Add Checkbox to packages/0/README.md component table
- Add Forms category to components index and guide
- Move Checkbox from Providers to Forms with correct link
- Add missing Dialog to Disclosure reference list
Replace static code fence with live DocsExample showing
select-all pattern with parent checkbox in mixed state.
- Add Checkbox.SelectAll that binds to parent group's aggregate state
- Automatically reflects isAllSelected/isMixed and calls toggleAll on click
- Does NOT register as a group item
- Provides context to child Checkbox.Indicator
- Fix: CheckboxRoot standalone mode now honors indeterminate prop
- Update docs with anatomy and simplified indeterminate example
49 new tests covering rendering, a11y, state reflection, interactions,
disabled state, keyboard support, Indicator integration, SSR, and error
conditions.
- Remove invalid aria-multiselectable from CheckboxGroup (not valid for role="group")
- Add inert attribute to hidden input for better AT isolation
- Make CheckboxRootContext generic to preserve type information
- Remove unnecessary preventDefault from click handlers
- Remove redundant type assertion in slotProps
- Add tests for SelectAll mix/unmix no-ops and dynamic group membership

BREAKING CHANGE: CheckboxGroupSlotProps.attrs no longer includes aria-multiselectable
The inert attribute already removes elements from the accessibility
tree per HTML spec, making aria-hidden="true" redundant.
- Rename `namespace` to `groupNamespace` on Root/SelectAll for connecting to parent Group
- Add `namespace` prop to Root/SelectAll for providing context to children
- Add `namespace` prop to Indicator/HiddenInput for injecting from parent Root
- Update test to check `inert` instead of removed `aria-hidden`
- Serialize complex values in HiddenInput for form submission
- Add readonly modifiers to immutable CheckboxRootContext fields
- Change SelectAll context type from never to void
- Create mountCheckbox, mountGroup, mountSelectAll helper functions
- Use it.each for repetitive attribute and state tests
- Reduce test file from ~3200 lines to ~1100 lines (65% reduction)
- Maintain same 94 test cases and coverage
- Rename check/uncheck slot props to select/unselect for consistency
- Update tests to match renamed slot props
@johnleider johnleider merged commit c251e79 into master Jan 13, 2026
10 of 13 checks passed
@johnleider johnleider deleted the feat/checkbox branch January 13, 2026 17:06
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.

1 participant