Skip to content

Remove the layering the nav reskin left behind - #74617

Open
stephenliang wants to merge 1 commit into
stephen/mainline-nav-reskinfrom
stephen/mainline-nav-cleanup
Open

Remove the layering the nav reskin left behind#74617
stephenliang wants to merge 1 commit into
stephen/mainline-nav-reskinfrom
stephen/mainline-nav-cleanup

Conversation

@stephenliang

@stephenliang stephenliang commented Aug 13, 2026

Copy link
Copy Markdown
Member

#74539 spliced each brand-gated CSS block into its surrounding scope. Where a spliced block sets a value that the code just above it has already set, the file now states a choice the cascade had already made. The clearest case asks for an orange button and then paints it purple two lines later, which @cat5inthecradle flagged in review.

This removes those redundant statements. It touches only declarations the rebrand added. Pre-existing rules are left alone, including ones the rebrand has since made unreachable — those are a separate question, not this PR's.

  • .primary asked button-with-color for an orange button and then painted it purple. The mixin takes an optional border color, so .primary passes the purple tokens straight in. .secondary still passes a single color and is unchanged.
  • The hover state of .headerlink drops border-bottom, margin-top and padding. The border-bottom reset the orange underline this stack deleted; the other two repeat values the same block already sets.
  • The small-desktop gap band is deleted. It sets gap: 1.5rem for 1024-1268px, and the rule three lines below sets gap: 0 at the same specificity, so the band never applied.

Rendering does not change. The two header rules were checked by computed-style parity: 11 header fixtures, 22 viewport widths on both sides of every threshold this change touches, at rest and under driven hover, active and focus-visible states. .primary changes the emitted CSS rather than deleting a duplicate, so buttons.scss was compiled before and after — the rule differs only in that the orange pair no longer precedes the purple pair that always replaced it.

🤖 Generated with Claude Code

@stephenliang
stephenliang requested a review from a team as a code owner August 13, 2026 20:02
@stephenliang
stephenliang force-pushed the stephen/mainline-nav-cleanup branch 2 times, most recently from 06270e8 to 255706e Compare August 13, 2026 20:31
Mainlining the nav reskin spliced each brand-gated block into its
surrounding scope. Where a spliced block set a value that the code
right above it had just set, the file now states a choice the cascade
had already made. This removes those redundant statements. It touches
only declarations the rebrand added; pre-existing rules are left alone,
including the ones the rebrand has made unreachable.

.primary asked button-with-color for an orange button and then painted
it purple. The mixin now takes an optional border color, so .primary
passes the purple tokens straight in. .secondary still passes a single
color and is unchanged.

The hover state of .headerlink dropped its border-bottom, margin-top
and padding. The border-bottom reset the orange underline that this
stack deleted, and the other two repeat the values the same block sets
already.

The small-desktop gap band is deleted. It sets gap: 1.5rem for
1024-1268px, and the rule three lines below sets gap: 0 at the same
specificity, so the band never applied.

Rendering does not change. The two header rules were checked by
computed-style parity: 11 header fixtures, 22 viewport widths on both
sides of every threshold this change touches, at rest and under driven
hover, active and focus-visible. For .primary, which changes the
emitted CSS rather than deleting a duplicate, buttons.scss was compiled
before and after: the rule differs only in that the orange pair no
longer precedes the purple pair that always replaced it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@stephenliang
stephenliang force-pushed the stephen/mainline-nav-cleanup branch from 255706e to d793312 Compare August 13, 2026 22:10
@stephenliang stephenliang changed the title Delete the header declarations the nav reskin made unreachable Remove the layering the nav reskin left behind Aug 13, 2026
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.

1 participant