Skip to content

feat(webkit): sync Global Header structure and chrome with updated Figma#661

Merged
robsongajunior merged 5 commits into
devfrom
feat/global-header-figma-structure
Jun 26, 2026
Merged

feat(webkit): sync Global Header structure and chrome with updated Figma#661
robsongajunior merged 5 commits into
devfrom
feat/global-header-figma-structure

Conversation

@gab-az

@gab-az gab-az commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Syncs the Global Header component with the updated Webkit Figma design (node 4310:19617) in two non-breaking steps. Region parity with Figma is now 1:1.

Commits

fix(webkit): align Global Header chrome with updated Figma

Visual/token alignment of the existing implementation:

  • Symmetric horizontal padding (--spacing-md both sides; was pl-md / pr-xxl).
  • Shell region gap → --spacing-md.
  • Bottom border → canonical --border-default (the old --border-muted isn't in the theme's border set).
  • Start/end region gaps → --spacing-xs / --spacing-sm per Figma.
  • Spec: updated Figma reference, Purpose, and Tokens table.

feat(webkit): add Global Header Container region and Nav alias

Structural refactor, fully additive:

  • New GlobalHeader.Container — a shrink-0 flex wrapper that groups the menu trigger + brand, mirroring the Figma Container region.
  • New GlobalHeader.Nav — the Figma name for the center region, exposed as an alias of the existing Middle (Middle retained).
  • Spec: Sub-components, Slots, and Container-gap token added.

Region parity (Figma ↔ code)

Figma Code
Container GlobalHeader.Container (new)
Left GlobalHeader.Left
Brand GlobalHeader.Brand
Nav GlobalHeader.Nav (alias; .Middle kept)
Right GlobalHeader.Right

Non-breaking guarantees

  • No export path changed (single ./layout/global-header compound export).
  • No compound property removed; no prop / event / slot / defineOptions.name changes.
  • Container is opt-in — existing compositions placing Left/Brand directly in the root render identically.

Verification

  • ESLint clean on the global-header folder; husky lint-staged (eslint --fix + prettier) passed on both commits.
  • vue-tsc --noEmit: zero errors in global-header (pre-existing unrelated errors in data/table and navigation-menu only).
  • Spec frontmatter valid and body checksum recomputed for each commit's snapshot (tamper-detection hook passes).

🤖 Generated with Claude Code

gab-az added 2 commits June 24, 2026 13:07
Match the Webkit GlobalHeader design (node 4310:19617): symmetric
horizontal padding (--spacing-md both sides), --spacing-md shell gap,
and the canonical --border-default bottom border. Adjust start/end
region gaps (--spacing-xs / --spacing-sm) to the Figma values. Update
the spec's Figma reference, Purpose, and Tokens table accordingly.
Mirror the Figma GlobalHeader structure (node 4310:19617) without
breaking changes. Add GlobalHeader.Container, a shrink-0 flex wrapper
that groups the menu trigger and brand as the Figma "Container" region,
and expose the center region under its Figma name via GlobalHeader.Nav
as an alias of the existing Middle (Middle is retained). Both additions
are purely additive: no export path, prop, event, or slot changes, and
existing compositions render identically.
@gab-az gab-az requested a review from a team as a code owner June 24, 2026 20:10
@gab-az gab-az force-pushed the feat/global-header-figma-structure branch from e754172 to f53cf33 Compare June 24, 2026 20:15
@robsongajunior robsongajunior merged commit 33d6c5b into dev Jun 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants