Fix spacing across 50 features by Copilot · Pull Request #9523 · refined-github/refined-github · GitHub
Skip to content

Fix spacing across 50 features#9523

Merged
fregante merged 7 commits into
mainfrom
copilot/fix-non-tmp-classes
May 23, 2026
Merged

Fix spacing across 50 features#9523
fregante merged 7 commits into
mainfrom
copilot/fix-non-tmp-classes

Conversation

Copilot AI commented May 19, 2026

Copy link
Copy Markdown
Contributor

Description

This addresses the broad non-tmp utility-class drift by ensuring spacing utility classes are paired with their tmp- equivalent instead of fixing pages one by one.
The update is repository-wide for source/ TS/TSX className strings and applies the migration rule consistently (*-4tmp-*-3, other values unchanged).

  • What changed

    • Added missing tmp- spacing classes next to existing non-tmp spacing classes in className values.
    • Updated both static and conditional string branches where spacing utilities are used.
    • Normalized one legacy form to the expected format: tmp-py2tmp-py-2.
  • Rule applied

    • m-4 / px-4 / mt-4 style classes map to tmp-m-3 / tmp-px-3 / tmp-mt-3.
    • All other spacing levels keep the same numeric value (mr-2tmp-mr-2, etc.).
  • Representative example

// Before
<h2 className="container mt-4 text-center">{breadcrumbs}</h2>

// After
<h2 className="container mt-4 tmp-mt-3 text-center">{breadcrumbs}</h2>

Test URLs

Screenshot

Copilot AI linked an issue May 19, 2026 that may be closed by this pull request
1 task
Copilot AI changed the title [WIP] Fix all non-tmp utility classes Add missing tmp-* spacing utility pairs across source classNames May 19, 2026
@fregante

fregante commented May 19, 2026

Copy link
Copy Markdown
Member

Copilot AI requested a review from fregante May 19, 2026 10:28
@fregante fregante changed the title Add missing tmp-* spacing utility pairs across source classNames Fix spacing across 50 features May 19, 2026
@github-actions github-actions Bot added the bug label May 19, 2026
@fregante fregante requested a review from SunsetTechuila May 20, 2026 06:21
@fregante

Copy link
Copy Markdown
Member

Can you take a look at this PR? I think it should be fine to merge without having to check each page, just double-checking the classes visually should be enough.

@fregante fregante marked this pull request as ready for review May 20, 2026 06:22
<>
<a
className="Link--muted mr-3"
className="Link--muted mr-3 tmp-mr-3"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this ok?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I mentioned the 4->3 change, not sure if I/it got it right

@fregante fregante merged commit c4d7f3b into main May 23, 2026
13 checks passed
@fregante fregante deleted the copilot/fix-non-tmp-classes branch May 23, 2026 05:08
@AjTheSpidey AjTheSpidey mentioned this pull request May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Fix ALL non-tmp classes

2 participants