Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow :focus-visible pseudo-selector to be set in theme.json #68520

Open
huubl opened this issue Jan 7, 2025 · 1 comment
Open

Allow :focus-visible pseudo-selector to be set in theme.json #68520

huubl opened this issue Jan 7, 2025 · 1 comment
Labels
Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Enhancement A suggestion for improvement.

Comments

@huubl
Copy link
Contributor

huubl commented Jan 7, 2025

What problem does this address?

Currently :focus-visible cannot be set via theme.json because the VALID_ELEMENT_PSEUDO_SELECTORS list does not include :focus-visible.

What is your proposed solution?

Add :focus-visible to the VALID_ELEMENT_PSEUDO_SELECTORS list to allow the use of the :focus-visible pseudo-selector in theme.json, providing more flexibility.

@huubl huubl added the [Type] Enhancement A suggestion for improvement. label Jan 7, 2025
@huubl
Copy link
Contributor Author

huubl commented Jan 7, 2025

Created a pull request:
#68521

@bph bph added the Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json label Jan 7, 2025
@huubl huubl changed the title Allow :focus-visible pseudo-selector to be set in theme.json Allow :focus-visible pseudo-selector to be set in theme.json Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants