Skip to content

Add ability to pass ref to ToggleSwitch #3806

Description

@joshblack

Context: https://github.slack.com/archives/C01L618AEP9/p1696948651184489?thread_ts=1696241098.672339&cid=C01L618AEP9

When returning focus onto the page, like when closing or dismissing a dialog, components need the ability to accept a ref that will allow for restoring focus to the component if it was the last active element before the dialog was triggered.

This issue tackles adding the ability to pass a ref to ToggleSwitch so that this component can participate in this kind of flow.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions