WordPress / theme-experiments

Experimenting with themes made out of blocks.
GNU General Public License v2.0
547 stars 180 forks source link

TT1 Blocks: add styles for the post title #141

Open jffng opened 3 years ago

jffng commented 3 years ago

The post title needs styling to match the default theme. It should look like this in the post editor and view:

Screen Shot 2020-12-15 at 11 32 57 AM
kjellr commented 3 years ago

Yeah, I'm not sure what to do about this one. https://github.com/WordPress/gutenberg/pull/26355 makes it possible to switch to the full template here and show the post title as it would appear on the front end:

template

(I borrowed this GIF from @jameskoster 🙌)

That being the case, I'm not totally sure what the plan is for the post title in the editor when you're not editing the full site. Should it borrow the normal core/post-title block settings as defined in Global Styles? Or is this meant to be a separate, simpler, "writing" view where the post title wouldn't exactly match the front end?

jameskoster commented 3 years ago

I'm not totally sure what the plan is for the post title in the editor when you're not editing the full site

Yeah this needs some design exploration I think. One idea I've seen floated around is to move the title input to the top bar, kind of like how macOS apps handle renaming:

Screenshot 2020-12-16 at 14 44 49

I like this option – at least as a fallback – because it ensures that editing the title is always possible, even if the Title block isn't actually rendered on the canvas.

It also eliminates any guesswork with regards to where the title will actually appear on the frontend. When the content and template views have different title displays (like the gif above) that can be confusing. The template should always be the source of truth there I think.

Certainly there are other options, but I haven't seen any other explorations.