[focusgroup] Interaction with custom elements that delegate focus
Open
Nobody has claimed this yet.
focusgroup
needs-triage
- Dominant language
- MDX
- Stars
- 4.5k
- Forks
- 226
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 4
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the focusgroup behavior alongside the custom element, shadow root, and shadowrootdelegatesfocus cases shown in the issue. Define the expected focus movement between the inside button and the outside button, and record whether focus remains trapped or can leave.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- accessibility, frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100