Skip to content

feat(site-kit): flag locale menu variant + flag data (D-017) - #30

Merged
jlc488 merged 5 commits into
mainfrom
feat/site-kit-flag-locale-menu
Sep 2, 2026
Merged

feat(site-kit): flag locale menu variant + flag data (D-017)#30
jlc488 merged 5 commits into
mainfrom
feat/site-kit-flag-locale-menu

Conversation

@jlc488

@jlc488 jlc488 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

What

  • LocaleMenu variant="flag": flag-only trigger, fourteen flag + native-name rows, native <details> so it works without JavaScript; Solid adds Escape, focus return, onLocaleChange.
  • Flag data for the fourteen locales in src/core/flags.mjs, vendored from flag-icons 7.5.0 (MIT). Not in dds-icons: its contract bans colour literals (D-017).
  • SiteHeader forwards localeVariant. The select variant is unchanged and remains the default.

Verification

  • verify:site-kit:ui, verify:site-kit:browser (new flag disclosure spec at 1280/375, RTL, hit-test), verify:site-kit:release, verify — all green locally.

First consumer

TraceLinq landing (gettracelinq.app) — consumes 0.4.0 from npm.

Vendored from flag-icons 7.5.0 (MIT) and inlined by scripts/build-flags.mjs.
Flags are site-kit data, not dds-icons entries: the icon set's contract
bans colour literals and requires currentColor strokes.
A details/summary disclosure — flag-only trigger, fourteen flag + native
name links — that works without JavaScript; Solid adds Escape, focus
return and the onLocaleChange contract. The select variant is unchanged
and stays the default. SiteHeader passes localeVariant through.
@jlc488
jlc488 merged commit cc2f996 into main Sep 2, 2026
2 checks passed
@jlc488
jlc488 deleted the feat/site-kit-flag-locale-menu branch September 2, 2026 13:34
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