Skip to content

feat(webkit): [ENG-47357] add footer composition component - #877

Draft
isaque-bock-azion wants to merge 9 commits into
mainfrom
feat/ENG-47357-footer
Draft

feat(webkit): [ENG-47357] add footer composition component#877
isaque-bock-azion wants to merge 9 commits into
mainfrom
feat/ENG-47357-footer

Conversation

@isaque-bock-azion

Copy link
Copy Markdown
Contributor

Summary

  • Adds the layout/footer composition component (Footer + Footer.Column + Footer.Link) — the page-footer counterpart to GlobalHeader, ported from the site's footer and rewritten on semantic tokens (--bg-canvas, --border-muted, --text-muted/--text-default, --spacing-*, .text-label-sm), per epic ENG-47354.
  • Responsive by CSS at the md breakpoint: 4-column grid folds to the 2×2 mobile grid, and the social bar stacks with the status/language cluster above the brand/social cluster (Figma Type=Default / Type=Mobile).
  • Ships the approved spec (.specs/footer.md), flat exports (./footer, ./footer-root, ./footer-column, ./footer-link), the Components/Layout/Footer story, and a co-located browser-mode test suite (20 tests incl. axe).

How to test

  1. pnpm storybook:dev → open Components/Layout/Footer → Default: four link columns over the social bar; resize below 768px and confirm the 2×2 grid and the stacked bar (status above brand).
  2. pnpm --filter webkit exec vitest run src/components/layout/footer/footer.test.ts → 20 tests pass (compound API, provide/inject testids, conditional social bar, nav landmarks, attr fallthrough, axe).
  3. pnpm webkit:lint && pnpm webkit:type-check && pnpm webkit:type-coverage && pnpm storybook:build → all green.

Notes

  • Related issue: ENG-47357 (epic ENG-47354). Content (links, languages, status severity) is consumer-supplied; the social bar composes existing DS components (Brand, IconButton, StatusIndicator, Select) and renders only when a social slot is provided.
  • Theme gap recorded in the spec: the 1280px content measure has no container primitive; using max-w-(--container-5xl) (1192px) until tokenized.
  • Visual baselines for the new story need the Storybook Regenerate Baseline workflow run on this branch (macOS renders don't match the linux snapshots).

isaque-bock-azion and others added 8 commits August 10, 2026 20:38
- token the social-bar border-top width (--border-width-default) instead of the implicit 1px
- add active and visited states to Footer.Link per the Design task's state scope
- add a size-limit budget for footer-root
- cover both single-slot branches of the social bar's conditional render
- add the column divider borders and fix the social-bar border token (--border-default, not --border-muted), per node 5467:1642
- remove the outer columns padding/gap in favor of per-column padding, matching Figma's flex-1 + 0 column-gap layout
- fix the social-bar right-cluster gap (status <-> language) to --spacing-lg, and lock the bar to h-14 at md+
- enrich the story: all 7 social icons, the language Select (with an explicit aria-label so the combobox has an accessible name distinct from its displayed value), matching the frame's anatomy
border-(length:--border-width-default) sets width on ALL FOUR sides, not just the paired border-r/border-t. Combined with border-r/border-t, every column and the social bar picked up unwanted left/top/bottom borders too — visible as a doubled line at each column seam and an inconsistent right edge. Switched to the per-side border-r-(length:...) / border-t-(length:...) form already used in panel-header.vue / table-row.vue, with border-0 to zero every side first.
@isaque-bock-azion
isaque-bock-azion marked this pull request as draft August 12, 2026 18:21
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.

2 participants