Skip to content

[focusgroup] Interaction with custom elements that delegate focus #1301

@jpzwarte

Description

@jpzwarte

How does the focusgroup interact with custom elements that delegate focus to an element inside the shadow root?

<div focusgroup>
  <host-element>
    <template shadowrootmode="open" shadowrootdelegatesfocus>
      <button>Inside button</button>
    </template>
  </host-element>
  <button>Outside button</button>
</div>

Will this "just" work? Or will focus be trapped on the inside button?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions