Make WordPress Core

Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#64237 closed defect (bug) (invalid)

6.9-RC1 UI update for stretchy heading and paragraph variations

Reported by: awetz583 Owned by:
Priority: normal Milestone:
Component: Editor Version: 6.9
Severity: normal Keywords:
Cc: Focuses:

Description

I noticed that in testing 6.9-RC1, I’m able to unregister the stretchy-heading and stretchy-paragraph block variations. However a single, unneeded button remains in the UI in that case.

To see the issue, unregister the block variations and observe single remaining button in the block’s right block-editor-block-inspector side bar.

Unregistering the block variations using JS:

unregisterBlockVariation(‘core/heading’, ‘stretchy-heading’);
unregisterBlockVariation(‘core/paragraph’, ‘stretchy-paragraph’);

Attachments (2)

Screenshot 2025-11-11 at 4.57.59 PM.jpg​ (16.9 KB ) - added by awetz583 12 months ago.
Screenshot of heading block sidebar showing one button for block variation
unregister-stretchy-heading.png​ (27.6 KB ) - added by wildworks 12 months ago.
Block sidebar after unregistering a stretchy heading variation

Download all attachments as: .zip

Change History (7)

@awetz583
12 months ago

Screenshot of heading block sidebar showing one button for block variation

#1 @jorbin
12 months ago

  • Milestone Awaiting Review → 6.9

Hi @awetz583, welcome to WordPress Trac.

Moving to the 6.9 milestone for visibility.

#2 @wildworks
12 months ago

Thanks for the report. In my testing, I can't reproduce the problem.

  1. Access ​https://playground.wordpress.net/?wp=beta: The 6.9 RC1 environment or later should start.
  2. Create a new post and insert a Heading block.
  3. Run the following code from your browser console: wp.blocks.unregisterBlockVariation('core/heading', 'stretchy-heading');

@awetz583 can you check to see if a theme or plugin is affecting the sidebar layout?

Last edited 12 months ago by wildworks (previous) (diff)

@wildworks
12 months ago

Block sidebar after unregistering a stretchy heading variation

#3 @awetz583
12 months ago

Thanks for the follow up - it appears one of my plugins was making the button appear wider.

Testing with the twenty twenty five theme and all my plugins off, I do see the smaller single button under the heading as @wildworks shows in the image above. My preference would be to remove this button if there is only one block variation registered as it may be confusing to site editors.

#4 follow-up: @wildworks
12 months ago

  • Milestone 6.9
  • Resolution → invalid
  • Status new → closed

@awetz583 I'm glad to hear that the problem has been solved.

My preference would be to remove this button if there is only one block variation registered as it may be confusing to site editors.

In 6.9 RC2, the UI itself will be deleted. See ​https://github.com/WordPress/gutenberg/pull/73238 for more details.

#5 in reply to: ↑ 4 @awetz583
12 months ago

Replying to wildworks:

In 6.9 RC2, the UI itself will be deleted. See ​https://github.com/WordPress/gutenberg/pull/73238 for more details.

Thanks for this link. That will solve the issue as I see it.

Note: See TracTickets for help on using tickets.