lsst-epo / lsst-epo/epo-react-lib

Add :focus-visible pseudo selectors

Open
#74 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

a11y chore good first issue
Dominant language
TypeScript
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Our styles rely on the [focus-visible polyfill](https://github.com/WICG/focus-visible) however the native support for the `:focus-within` pseudo selector has reached 90%+ support with only older versions of Safari and IE not supporting.

Add styles for `:focus-within` alongside any styles targeting `.focus-within` to support un-polyfilled browsers. Example can be found in the styles for `Button`

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 with the Button styles referenced in the issue and search the repository for existing `.focus-within` selectors. Resolve whether the requested change is for `:focus-within` or `:focus-visible`, then compare the paired styles and verify that the intended styling works without the polyfill. Done means the relevant native pseudo-selector coverage is present alongside the existing class-based styles.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.