Skip to content

Remove global h2 css rule in favour of heading styles/components - #32969

Merged
t3chguy merged 15 commits into
developfrom
t3chguy/kill-global-h2
Apr 2, 2026
Merged

Remove global h2 css rule in favour of heading styles/components#32969
t3chguy merged 15 commits into
developfrom
t3chguy/kill-global-h2

Conversation

@t3chguy

@t3chguy t3chguy commented Mar 30, 2026

Copy link
Copy Markdown
Member

Also forbids use of hX elements in shared-components in favour of Compound's Heading

This rule caused a lot of styling issues in #32968

Screenshots are minor letter-spacing changes

@florianduros

florianduros commented Mar 30, 2026

Copy link
Copy Markdown
Member

FYI, we have a H2 component in compound web

@t3chguy

t3chguy commented Mar 30, 2026

Copy link
Copy Markdown
Member Author

Sure, which is just an alias with defaults for the Heading component. I think using e.g. <H6 as="h1"> is just plainly confusing and should be avoided. Also looks like Compound H5 & H6 are bigger than H4!?

But in any case the linter doesn't care about H2, but does about h2.

image

@t3chguy
t3chguy enabled auto-merge March 31, 2026 07:58
@t3chguy
t3chguy added this pull request to the merge queue Mar 31, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 31, 2026
@t3chguy
t3chguy added this pull request to the merge queue Apr 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 2, 2026
@t3chguy
t3chguy added this pull request to the merge queue Apr 2, 2026
@t3chguy
t3chguy removed this pull request from the merge queue due to a manual request Apr 2, 2026
@t3chguy
t3chguy added this pull request to the merge queue Apr 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Apr 2, 2026
@t3chguy
t3chguy added this pull request to the merge queue Apr 2, 2026
Merged via the queue into develop with commit 2d3e2fc Apr 2, 2026
57 checks passed
@t3chguy
t3chguy deleted the t3chguy/kill-global-h2 branch April 2, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants