fb55 / fb55/css-select

Missing support for :focus-within and :focus-visible

Open
#1,768 1 comment 0 reactions 0 assignees View on GitHub

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 :visited via optional adapter methods.

Suggestion:

  • Add optional adapter hooks and implement :focus-visible and :focus-within in the same style as other dynamic pseudos.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.