Skip to content

fix(docs-infra): center social and theme menus under their triggers o…#69340

Open
erkamyaman wants to merge 1 commit into
angular:mainfrom
erkamyaman:fix-mini-menu-tablet-positioning
Open

fix(docs-infra): center social and theme menus under their triggers o…#69340
erkamyaman wants to merge 1 commit into
angular:mainfrom
erkamyaman:fix-mini-menu-tablet-positioning

Conversation

@erkamyaman

Copy link
Copy Markdown
Contributor

On tablet the social and theme mini-menus shared a fixed top/left offset, so their dropdowns didn't line up with the buttons that open them.

They now anchor to their triggers and center beneath them via the same CSS anchor positioning the version picker uses. The social trigger also gains aria-controls + a matching menu id for a11y parity with the theme trigger.

PR Checklist

Please check to confirm your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

On tablet widths (701–900px), the social-links and theme-picker mini-menus were positioned with a fixed top: 75px; left: 5px offset, so their dropdown panels did not line up with the buttons that open them.

image image

What is the new behavior?

The social and theme dropdowns now anchor to their trigger buttons and center beneath them on tablet, using the same CSS anchor positioning the version picker already used. The shared tablet positioning is consolidated onto .adev-mini-menu, with --social / --theme / --version modifiers selecting each trigger, so all three mini-menus share one rule. The version picker's on-screen behavior is unchanged. The social trigger also gains aria-controls and a matching menu id, bringing it to accessibility parity with the theme trigger.

image image

Does this PR introduce a breaking change?

  • Yes
  • No

…n tablet

On tablet the social and theme mini-menus didn't line up with the buttons that
open them.

All three mini-menus now share one tablet positioning rule on `.adev-mini-menu`
that centers each panel under its trigger, with `--social`/`--theme`/`--version`
modifiers selecting the anchor; the version picker's on-screen behavior is
unchanged. The social trigger also gains `aria-controls` + a matching menu `id`
for a11y parity with the theme trigger.
@pullapprove pullapprove Bot requested a review from josephperrott June 13, 2026 09:05
@angular-robot angular-robot Bot added the area: docs-infra Angular.dev application and infrastructure label Jun 13, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs-infra Angular.dev application and infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant