Skip to content

Separate desktop hover dropdowns from mobile tap menus - #21

Merged
Kimeiga merged 5 commits into
masterfrom
fix/desktop-dropdown-density
Oct 2, 2026
Merged

Kimeiga merged 5 commits into
masterfrom
fix/desktop-dropdown-density

Conversation

@Kimeiga

@Kimeiga Kimeiga commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Desktop

  • open dropdowns on hover/focus for fine-pointer desktop browsers
  • remove the 8px gap so the menu starts directly below the navbar
  • reduce menu width, padding, corner radius, and item height for a traditional desktop dropdown
  • inset every submenu row equally from both left and right so hover highlighting no longer touches the right edge

Mobile

  • keep native details/summary tap-to-open behavior
  • keep the full-width panel and 44px-class touch targets
  • do not force desktop hover behavior onto coarse-pointer/touch layouts

Validation

  • add regression coverage for compact desktop hover geometry and mobile touch targets
  • regenerate committed distribution CSS from source

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T16:24:06.572494Z a3d4993 PR opened
🔒 Security Review ✅ Completed 2026-10-02T16:21:59.921401Z a3d4993 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Kimeiga
Kimeiga merged commit 4c92348 into master Oct 2, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a3d499310d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/parts/_navbar.css
Comment on lines +246 to +248
body > nav:first-of-type details[open] > ul,
body > header:first-child > nav details[open] > ul {
display: flex;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep tap-open menus available above the mobile breakpoint

On a touch-only device whose viewport is wider than 40rem—such as a tablet or phone in landscape—the fine-pointer hover query does not match, while this [open] rule is excluded by the width query. Tapping the summary therefore sets open, but the submenu remains under the base display: none, making every dropdown destination inaccessible. Scope the tap-open rule by pointer capability rather than viewport width, or leave [open] > ul enabled globally.

Useful? React with 👍 / 👎.

Comment thread src/parts/_navbar.css
body > nav:first-of-type details[open] > ul,
body > header:first-child > nav details[open] > ul {
display: flex;
@media (hover: hover) and (pointer: fine) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep keyboard focus rules outside the pointer query

On a device reporting hover: none or a coarse primary pointer, using an attached keyboard or switch input no longer reveals a plain nested-list submenu because its :focus-within rule is now gated by this fine-pointer query. The submenu consequently remains at the base display: none even when its trigger receives keyboard focus, regressing the documented keyboard-focus behavior. Gate only the :hover selectors and leave the :focus-within selectors unconditional.

Useful? React with 👍 / 👎.

Comment thread src/parts/_navbar.css
min-width: min(18rem, calc(100vw - 2rem));
width: max-content;
min-width: 12rem;
max-width: min(18rem, calc(100vw - 1rem));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Allow capped dropdown labels to wrap

When a desktop submenu label is wider than 18rem, this new cap constrains the menu but the inherited navbar rule still gives every link white-space: nowrap. Because the menu also has overflow-y: auto, its horizontal overflow computes to scrollable, so verbose destination labels now require horizontal scrolling inside the dropdown instead of fitting within the available viewport as they did before. Override white-space for submenu links or otherwise handle overflow when applying the cap.

Useful? React with 👍 / 👎.

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