Skip to content

Fix: consistent heading structure across all admin screens#362

Merged
rami-elementor merged 3 commits intocore-betafrom
a11y-headings
Apr 25, 2026
Merged

Fix: consistent heading structure across all admin screens#362
rami-elementor merged 3 commits intocore-betafrom
a11y-headings

Conversation

@rami-elementor
Copy link
Copy Markdown
Contributor

@rami-elementor rami-elementor commented Apr 18, 2026

The <Toolbar> has a <h1> tag. The other <h1> tags should be downgraded, and the sizes should be consistent across all the admin screens.

two-h1-tags

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR standardizes heading levels across several Code Snippets admin UIs (PHP-rendered Settings and multiple React screens) and adjusts the associated SCSS so page titles and section titles follow a consistent visual/semantic hierarchy.

Changes:

  • Downgrade several screen “page title” headings from h1h2 (and Settings section titles from h2h3).
  • Adjust/manage/edit/settings SCSS to style the new h2 page title pattern consistently.
  • Simplify the Upsell dialog markup by replacing a secondary heading with a paragraph and updating related styles.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/php/Admin/Menus/Settings_Menu.php Adjusts Settings screen heading levels (h1h2, section titles h2h3).
src/js/components/common/UpsellDialog.tsx Changes the “Pro benefits” label from a heading to a paragraph.
src/js/components/ManageMenu/SnippetsTable/SnippetsTable.tsx Changes Manage screen page title heading from h1h2.
src/js/components/ManageMenu/CommunityCloud/CommunityCloud.tsx Changes Community Cloud screen heading from h1h2.
src/js/components/EditMenu/SnippetForm/page/PageHeading.tsx Changes Edit screen page title heading from h1h2.
src/css/welcome.scss Updates welcome screen heading styling and removes unused h5 styling.
src/css/settings.scss Adds styling for .wrap > h2:first-of-type on Settings screens.
src/css/manage.scss Updates Manage page heading selector to target h2 and removes old h1 styling.
src/css/edit.scss Adds styling for .wrap > h2:first-of-type on Edit screens.
src/css/common/_upsell.scss Aligns Upsell dialog styles with updated markup (removes h2 styling).

Comment thread src/js/components/common/UpsellDialog.tsx
Comment thread src/php/Admin/Menus/Settings_Menu.php
Comment thread src/css/settings.scss
Comment thread src/css/manage.scss Outdated
Comment thread src/js/components/common/UpsellDialog.tsx
@rami-elementor rami-elementor marked this pull request as ready for review April 23, 2026 05:26
@rami-elementor rami-elementor requested a review from a team April 23, 2026 05:31
@rami-elementor rami-elementor merged commit d00102d into core-beta Apr 25, 2026
8 checks passed
@rami-elementor rami-elementor deleted the a11y-headings branch April 25, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants