Make WordPress Core

Opened 7 weeks ago

Last modified 14 hours ago

#59688 new enhancement

Add descriptions to patterns in bundled themes

Reported by: poena's profile poena Owned by:
Milestone: 6.5 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: good-first-bug has-patch needs-testing
Focuses: accessibility, docs Cc:

Description

Patterns have a parameter called "Description". The description is used in the WordPress interface, to add context for users that can not see or use the pattern preview. For example users of screen readers.

All patterns without the "Inserter" parameter set to "false" or "no", should use the description parameter (These patterns are hidden in the block inserter and do not use the descriptions).

Patterns in bundled themes that are missing descriptions needs to be updated.
Patterns can be registered using the patterns folder or with register_block_pattern() and both type of patterns should be updated.

Attachments (3)

59688.diff (22.2 KB) - added by StringPiggy 3 weeks ago.
Diff for twentytwentyfour theme
59688.2.diff (22.1 KB) - added by StringPiggy 3 weeks ago.
Update descriptions for twentytwentyfour
59688.3.diff (23.8 KB) - added by StringPiggy 3 weeks ago.
Add descriptions for twentytwentythree

Download all attachments as: .zip

Change History (6)

@StringPiggy
3 weeks ago

Diff for twentytwentyfour theme

#1 @StringPiggy
3 weeks ago

  • Keywords has-patch needs-testing added

I tested with VoiceOver, would be awesome if can be tested on other screen readers.

@StringPiggy
3 weeks ago

Update descriptions for twentytwentyfour

#2 @StringPiggy
3 weeks ago

For the twentytwentytwo theme, I noticed most of the title of the pattern is already descriptive. Would a description still be needed in this case?

@StringPiggy
3 weeks ago

Add descriptions for twentytwentythree

#3 @oglekler
14 hours ago

  • Focuses docs added
Note: See TracTickets for help on using tickets.