Make WordPress Core

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#53647 closed enhancement (fixed)

Twenty Twenty-One: Add blockType suggestions to block patterns

Reported by: ryelle Owned by: audrasjb
Priority: normal Milestone: 6.1
Component: Bundled Theme Version:
Severity: normal Keywords: has-patch commit assigned-for-commit
Cc: Focuses:

Description

When using a given block, patterns can be suggested which use that block. For example, in Twenty Twenty-One, the "Large Text" pattern uses a heading block, so if the user adds a heading block, it should suggest this pattern.

See Contextual patterns for easier creation for more details.

The patterns in Twenty Twenty-One should be updated to have these suggestions.

Attachments (2)

53647.diff (8.7 KB ) - added by ryelle 5 years ago.
Screen Shot 2021-07-12 at 1.25.37 PM.png (960.6 KB ) - added by ryelle 5 years ago.
Columns block & suggestions

Download all attachments as: .zip

Change History (9)

@ryelle
5 years ago

@ryelle
5 years ago

Columns block & suggestions

#1 @ryelle
5 years ago

  • Keywords has-patch added

This adds the following suggestions:

  • Heading: Large Text
  • Cover: Links area
  • Columns: Overlapping images, Overlapping images and text, Contact information

#2 @poena
4 years ago

  • Keywords commit added
  • Milestone Awaiting Review6.1

This is a small change that will help users find and select patterns, it would be good to add it to the next theme release or 6.1, which ever is first.

This ticket was mentioned in PR #2990 on WordPress/wordpress-develop by audrasjb.


4 years ago
#3

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

This fixes a coding standard issue on previous patch.

#4 @audrasjb
4 years ago

  • Owner set to audrasjb
  • Status newreviewing

#5 @audrasjb
4 years ago

  • Keywords assigned-for-commit added

Tests are passing, let's ship this patch :)

#6 @audrasjb
4 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 53716:

Twenty Twenty-One: Add block type suggestions to block patterns.

When using a given block, patterns which use that block can be suggested. This changeset adds blockType suggestion for several Twenty Twenty-One bundled patterns.

Props ryelle, poena, audrasjb.
Fixes #53647.

Note: See TracTickets for help on using tickets.