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

Backport for 6.3: Add a description key to theme.json style variations #4687

Conversation

ramonjd
Copy link
Member

@ramonjd ramonjd commented Jun 25, 2023

Backporting changes from WordPress/gutenberg#45242

Adds description to VALID_TOP_LEVEL_KEYS in class-wp-theme-json.php to allow for an accessibility improvement.

The description is added to the aria label of the style variation container. If the style variation has no description, only the title is used.

props @carolinan

Trac ticket: https://core.trac.wordpress.org/ticket/58614


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@audrasjb
Copy link
Contributor

committed in https://core.trac.wordpress.org/changeset/56041

@oandregal
Copy link
Member

Hey, this PR missed backporting one file (theme-i18n.json), see report and next steps at WordPress/gutenberg#45242 (comment)

@ramonjd
Copy link
Member Author

ramonjd commented Jul 1, 2024

Hey, this PR missed backporting one file (theme-i18n.json), see report and next steps

Thanks @oandregal

I took a stab at it, but I'm not confident I've done everything correctly.

See comment: WordPress/gutenberg#45242 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

4 participants