Skip to content

Conversation

@GeoffDusome
Copy link
Contributor

What does this do/fix?

This pull request updates the decorative heading feature in the core heading block to use <div> tags instead of <span> tags for accessibility purposes. The main changes involve renaming the relevant attribute and updating both the PHP and JS logic to reflect the switch from <span> to <div>.

Decorative Heading Tag Update:

  • Changed the attribute from useSpanTag to useDivTag in both the PHP (Heading.php) and JS (editor.js) implementations.
  • Updated the block filter and rendering function in Heading.php to replace heading tags with <div> tags instead of <span>, and renamed the function accordingly. [1] [2] [3]

Editor UI and Help Text:

  • Modified the editor settings so the toggle now refers to using <div> tags for decorative headings, including updated help text for clarity.

QA

Links to relevant issues

Copy link
Collaborator

@dpellenwood dpellenwood left a comment

Choose a reason for hiding this comment

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

🟢

@GeoffDusome GeoffDusome added In QA Waiting on QA and removed Needs FE Review labels Jan 5, 2026
@GeoffDusome GeoffDusome merged commit ef1acdf into main Jan 9, 2026
7 checks passed
@GeoffDusome GeoffDusome deleted the task/MOOSE-301/decorative-heading-div branch January 9, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

In QA Waiting on QA Launch Environment Deploys to dokku

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants