Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
auto focus add new page input
Co-authored-by: Ramon <[email protected]>
  • Loading branch information
SaxonF and ramonjd authored Jun 6, 2023
commit 3edbff5a77626506c29a94731e40dda13b1cac38
3 changes: 3 additions & 0 deletions packages/edit-site/src/components/add-new-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export default function AddNewPageModal( { onSave, onClose } ) {
<form onSubmit={ createPage }>
<VStack spacing={ 3 }>
<TextControl
/* eslint-disable jsx-a11y/no-autofocus */
autoFocus
/* eslint-enable jsx-a11y/no-autofocus */
label={ __( 'Page title' ) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Give page a title and hit create

Not a blocker, just asking if we're not enforcing a page title for creation, maybe add 'Page title (optional)'?

onChange={ setTitle }
placeholder={ __( 'Untitled' ) }
Expand Down