Skip to content

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

Closed
ramonjd wants to merge 1 commit intoWordPress:trunkfrom
ramonjd:add/theme-json-add-top-level-key-description
Closed

Backport for 6.3: Add a description key to theme.json style variations#4687
ramonjd wants to merge 1 commit intoWordPress:trunkfrom
ramonjd:add/theme-json-add-top-level-key-description

Conversation

@ramonjd
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@oandregal
Copy link
Copy Markdown
Member

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

@ramonjd
Copy link
Copy Markdown
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