Skip to content

CheckboxControl: Add disabled state #59411

Closed

Description

@mirka

What problem does this address?

#59364 surfaced a use case for a disabled state on CheckboxControl.

What is your proposed solution?

Activity

  1. added
    [Type] Enhancement
    [Package] Components
    on Feb 27, 2024
  2. im3dabasia commented on Mar 26, 2025

    @im3dabasia
    Contributor

    I'll work on this issue.

  3. added
    [Status] In Progress
    on Mar 27, 2025
  4. ciampo commented on Jun 5, 2025

    @ciampo
    Contributor

    we may need an additional focusableWhenDisabled prop so consumers can choose

    Should we call this prop accessibleWhenDisabled for better consistency with the Button prop?

  5. im3dabasia commented on Jun 6, 2025

    @im3dabasia
    Contributor

    Thanks @ciampo for the point.

    The current PR which I have raised is focusable by default when disabled, attaching a screen recording.

    This is because of the use of aria-disabled native attribute attached on the input element.

    Are we looking to change the attribute to disabled when accessibleWhenDisabled is false and aria-disabled when accessibleWhenDisabled is set to true. This way more control would be given to the developers using this props. We can have the defaults set as per the requirement and as per the Button component's default behaviour to have consistency across components.

    Screen.Recording.2025-03-27.at.3.23.01.PM.mov
  6. mikeyarce commented on Jul 4, 2025

    @mikeyarce
    Contributor

    Working on a client site today I found that the CheckboxControl did not have a disabled state and I found this issue. I looked at the PR and I think it would be a great addition!

  7. linked a pull request that will close this issueCheckbox: fix disabled styles #77132on Apr 16, 2026
  8. mirka commented on Apr 16, 2026

    @mirka
    MemberAuthor

    Closed by #77132

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

Metadata

Metadata

Assignees

Labels

[Package] Components[Status] In Progress[Type] Enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions