Skip to content

fix(docs-site): language menu collapsed to one row after redesign#90

Merged
vincentkoc merged 1 commit into
mainfrom
fix/language-menu-scope
Jul 7, 2026
Merged

fix(docs-site): language menu collapsed to one row after redesign#90
vincentkoc merged 1 commit into
mainfrom
fix/language-menu-scope

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

The redesign (#89) moved the language picker into .header-links, where the generic .header-links a{display:inline-flex} rule out-specifies .language-option{display:grid} — the dropdown rendered as a single horizontal row clipping all but the active language.

Scope the header anchor rules to direct children (.header-links>a) so menu options stack again, and add smoke contracts (no descendant anchor rules under .header-links; options must be grid rows).

Verified with Playwright against the built shell: 21 options stacked in a 430px scrollable menu, header icon links unaffected.

The redesign moved the language picker inside .header-links, so the
generic .header-links a{display:inline-flex} rule out-specified
.language-option{display:grid} and the menu rendered as a one-row
horizontal strip — only the active language was visible. Scope the
header link rules to direct children (.header-links>a) and add smoke
contracts: no descendant anchor rules under .header-links, and menu
options must stack as grid rows.
@vincentkoc
vincentkoc requested a review from a team as a code owner July 7, 2026 05:15
@vincentkoc
vincentkoc merged commit 1c95de7 into main Jul 7, 2026
6 checks passed
@vincentkoc
vincentkoc deleted the fix/language-menu-scope branch July 7, 2026 05:20
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