Missing support for :focus-within and :focus-visible
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 634
- Forks
- 77
- Avg merge
- 1m
- Merged PRs (30d)
- 19
Description
Feature request: add support for :focus-within and :focus-visible.
Current behavior:
- Both selectors throw
Unknown pseudo-class.
Context:
- css-select already supports dynamic-state pseudos like
:hover,:active, and:visitedvia optional adapter methods.
Suggestion:
- Add optional adapter hooks and implement
:focus-visibleand:focus-withinin the same style as other dynamic pseudos.
Contributor guide
No contributing guide indexed for this repository
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
Start by locating css-select’s handling of dynamic-state pseudos such as :hover, :active, and :visited, including their optional adapter methods. Add the corresponding support for :focus-visible and :focus-within in the same style, then verify that both selectors no longer produce Unknown pseudo-class and that adapter hooks control their state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, typescript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100