Skip to content

Add a read-only state to Switch #3840

@joshwooding

Description

@joshwooding

Area

UI Components

The problem

Most of the other selection-based components have a read-only state, e.g. Checkbox, Radio Button. Read-only is commonly used to show a non-editable state in an application.

The solution

Add readOnly to Switch.

  • Still requires focus

Alternatives and examples

Creates a11y challenges, other design options exist

Are you a JPMorgan Chase & Co. employee?

  • I am an employee of JPMorgan Chase & Co.

Related

Metadata

Metadata

Type

No type

Projects

Status

Green

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions