Skip to content

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

@huubl

Description

@huubl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions