Repository navigation
Pattern Creator: Show a prompt to name the pattern at the top of the editor - #818
Conversation
…editor The pattern title sits above the canvas iframe, so it never gets the editor's rich text placeholder styles: a new pattern shows an empty dark band with no hint that it is where the name goes. It also starts flush against the toolbar. Set the editor's title placeholder to "Enter your pattern name", style the placeholder inside the title wrapper as the editor does in the canvas, and add space above the title. Fixes #733. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YBAW4qoeXMBLmmMJxuCC7d
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Thanks for the improvement! Adding a clear placeholder like “Enter your pattern name…” at the top of the pattern editor, along with increased top spacing, will make the interface more intuitive and user-friendly. This helps users understand the first step immediately. Great enhancement! |
Fixes #733
The pattern title in the creator sits above the canvas iframe, so it never gets the editor's rich text placeholder styles, which only load inside the iframe. A new pattern opens with an empty dark band and no hint that this is where the pattern's name goes, and the title starts right against the toolbar.
This sets the editor's title placeholder to "Enter your pattern name", styles placeholders in the title wrapper the way the canvas does, and adds 24px of space above the title. The wording follows the issue's suggestion; "Add pattern name", matching core's "Add title", would also work.
Testing
bin/check(composer install, PHP lint, npm ci, CSS and JS lint, PHPUnit against WordPress nightly, Jest): all pass.npm run test:unit --workspace=wporg-pattern-creator: the updatedgetSettingstests fail without the change and pass with it./new-pattern/while logged in; the title area shows "Enter your pattern name" and has space above it.Screenshots
Props dd32, amitdholiya.
Opened by the wporg bug pipeline, unattended. Risk: needs-review.
Generated by Claude Code
Summary by CodeRabbit