pattern-directory icon indicating copy to clipboard operation
pattern-directory copied to clipboard

Add "Intro Area with Heading and Image" pattern as a core pattern

Open richtabor opened this issue 1 year ago • 3 comments

I'd like to add this pattern as a core pattern.

It's a bit more structured than the other section-style patterns, an interesting exploration into seeing how patterns can become more reliant on themes, and less on hard-coded values within the pattern.

Exploring early to help orient the next default WordPress theme.

richtabor avatar Apr 30 '24 13:04 richtabor

@richtabor Does this need approval from other people? Can you share any relevant discussion? I don't think we have an explicit process for making a pattern "curated," but correct me if I'm wrong 🙂

Once that's cleared up, the process will be to add the core internal keyword, which will mark it as "curated" on the pattern directory and start sending it to WordPress sites. In the past we've also moved these to the wordpressdotorg user, but I don't recall if that was a requirement (it is not, technically).

Does this pattern work with all WP versions, or should it be marked with a version flag (ie, only works on 6.4+)?

ryelle avatar Apr 30 '24 15:04 ryelle

I don't think we have an explicit process for making a pattern "curated," but correct me if I'm wrong

No, I don't think it needs approval. Just wanted to leave a record here.

Does this pattern work with all WP versions, or should it be marked with a version flag (ie, only works on 6.4+)?

I think it's fine to include a 6.5+ flag for now.

Can you share any relevant discussion?

Only relevant discussion is on https://github.com/WordPress/gutenberg/pull/60715, exploring how we can make patterns not have to rely on hard-coded left and right outer padding values, so that they're more interoperable across sites.

richtabor avatar Apr 30 '24 16:04 richtabor

After more exploration, perhaps core / curated patterns can be much more oriented along this style of pattern, where they're more interoperable sections of a site, rather than the fixed values bundled with most of the patterns in the directory.

richtabor avatar Apr 30 '24 16:04 richtabor

Can we get this moving? Interoperable core patterns will be key for an upcoming default WordPress theme. I'd like to explore/iterate quickly and having one added will be a solid proof of concept to expand on.

richtabor avatar Jun 16 '24 14:06 richtabor

In the past we've also moved these to the wordpressdotorg user, but I don't recall if that was a requirement (it is not, technically).

Doesn't matter to me.

richtabor avatar Jun 16 '24 14:06 richtabor

This has been done, you can see the pattern is part of the curated set now (on the homepage). It should appear in the API response soon, pending caches.

Updated author to wordpressdotorg.
Set locale to en_US.
Set version to 6.5.
Set viewport width to 1200.
Marked for core.

ryelle avatar Jun 19 '24 18:06 ryelle