Skip to content

feat(FocusTrap): focus methods should accept focus origin #30032

Open
@keatkeat87

Description

@keatkeat87

Feature Description

Similar to this issue feat(FocusTrap): focus methods should accept focus options #21767

those methods should accept FocusOrign too

focusFirstTabbableElement()
focusFirstTabbableElementWhenReady()
focusInitialElement()
focusInitialElementWhenReady()
focusLastTabbableElement()
focusLastTabbableElementWhenReady()

Use Case

Every focus-related method should allow to set focus options and origin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: cdk/a11yfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions