Skip to content

Switch - Removed labelOff prop #672

@thatblindgeye

Description

@thatblindgeye

Follow up to breaking change PR patternfly/patternfly-react#10646

We're removing the labelOff prop to aid in preventing dynamic Switch labels that can worsen a11y. In addition we're adding the role="switch" to the input.

Required actions:

  1. Build codemod
  2. Build test
  3. Update readme with description & example

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions