gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Separator: Surfacing the HTML markup control

Open Infinite-Null opened this issue 6 months ago • 2 comments

What?

Closes #70441

Reverts the HTML element control in the Separator block back to the Advanced Inspector panel to restore consistent UI patterns and improve overall usability.

Why?

In PR #70185, the HTML element control was moved from the Advanced Inspector to the top-level Settings panel to improve accessibility. However, this change created a significant usability regression.

How?

This PR reverts the UI changes from #70185 by:

  • Moving the HtmlElementControl back to InspectorAdvancedControls
  • Keeping the helpful control itself (just moving its location)

Testing Instructions

  1. Open the WordPress block editor (post or page)
  2. Insert a Separator block
  3. Open the block settings in the sidebar
  4. Click on the "Advanced" section at the bottom of the inspector
  5. Verify that the "HTML element" control is present and functional
  6. Test changing between <hr> and <div> options
  7. Confirm the separator renders with the correct HTML element in both editor and frontend

Screenshots or screencast

Before (Current) After (This PR)
image image

Infinite-Null avatar Jun 17 '25 09:06 Infinite-Null

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Infinite-Null <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: karmatosed <[email protected]>
Co-authored-by: amberhinds <[email protected]>
Co-authored-by: joedolson <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

github-actions[bot] avatar Jun 18 '25 10:06 github-actions[bot]

Hi @t-hamano, I have reverted the changes and moved HTML element control to the Inspector advanced section. Please review it at your convenience.

Infinite-Null avatar Jun 18 '25 10:06 Infinite-Null