Skip to content

Conversation

@taphill
Copy link
Contributor

@taphill taphill commented Jan 28, 2026

What changed / motivation?

I got the following error while using the ESLint plugin:

error  Unknown pseudo element "::file-selector-button"  @stylexjs/valid-styles

The code seemed to be working correctly, but the linter was flagging it as invalid.

This PR adds three pseudo-elements to the ESLint plugin's pseudoElements list that were missing but are defined in the StyleX types:

  • ::cue-region
  • ::file-selector-button
  • ::target-text

The pseudo-elements are defined in:

But were missing from:

Linked PR/Issues

N/A

Additional Context

I also noticed some pseudo-elements in the ESLint plugin that aren't in the types.

  • ::thumb
  • ::-webkit-inner-spin-button
  • ::-webkit-outer-spin-button

But I did not make any changes to those as part of this PR.

Pre-flight checklist

@vercel
Copy link

vercel bot commented Jan 28, 2026

@taphill is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 28, 2026
@mellyeliu mellyeliu merged commit 1815406 into facebook:main Jan 28, 2026
6 of 9 checks passed
@taphill taphill deleted the fix/eslint-missing-pseudo-elements branch January 28, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants