Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions packages/editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Enhancements

- Notes Sidebar: Show the Notes icon on the "Add note" item in the block Options menu ([#83460](https://github.com/WordPress/gutenberg/pull/83460)).
- `PostAuthor`: The field renders with the `SearchableSelect` component of `@wordpress/ui` instead of `ComboboxControl` and `SelectControl` ([#83323](https://github.com/WordPress/gutenberg/pull/83323)).

## 15.1.0 (2026-09-23)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
import { useSelect } from '@wordpress/data';
import { getUnregisteredTypeHandlerName } from '@wordpress/blocks';
import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';
import { comment as commentIcon } from '@wordpress/icons';
import { unlock } from '../../lock-unlock';

const { NoteIconSlotFill } = unlock( blockEditorPrivateApis );
Expand Down Expand Up @@ -45,6 +46,7 @@ function NoteMenuItem( { clientId, onClick, isDistractionFree } ) {

return (
<MenuItem
icon={ commentIcon }
onClick={ onClick }
aria-haspopup="dialog"
disabled={ isDisabled }
Expand Down
19 changes: 19 additions & 0 deletions test/e2e/specs/editor/various/block-notes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,25 @@ test.describe( 'Block Notes', () => {
await expect( thread ).toBeFocused();
} );

test( 'shows an icon and shortcut on the "Add note" menu item', async ( {
editor,
page,
} ) => {
await editor.insertBlock( {
name: 'core/paragraph',
attributes: { content: 'Testing block comments' },
} );
await editor.clickBlockToolbarButton( 'Options' );
const menuItem = page
.getByRole( 'menu', { name: 'Options' } )
.getByRole( 'menuitem', { name: 'Add note' } );

await expect( menuItem.locator( 'svg' ) ).toBeVisible();
await expect(
menuItem.locator( '.components-menu-item__shortcut' )
).not.toBeEmpty();
} );

test( 'can reply to a block note', async ( { page, blockNoteUtils } ) => {
await blockNoteUtils.addBlockWithNote( {
type: 'core/paragraph',
Expand Down
Loading