Skip to content

Fix top menu item spacing to match left menu#24507

Open
mellonis wants to merge 1 commit into
matomo-org:5.x-devfrom
mellonis:fix-top-menu-item-spacing
Open

Fix top menu item spacing to match left menu#24507
mellonis wants to merge 1 commit into
matomo-org:5.x-devfrom
mellonis:fix-top-menu-item-spacing

Conversation

@mellonis

@mellonis mellonis commented May 11, 2026

Copy link
Copy Markdown

Summary

  • Top-bar labels were rendered with padding: 4px, which made the active/hover pill too tight (see screenshots in the issue).
  • Aligns .navbar-label and .navbar-icon to padding: 8px 12px, matching the left menu's .item rule in the same file.
  • The hover/active background is drawn via &::after { inset: 0 }, so it follows the padded box and now produces the comfortable pill shown in the "what should happen" screenshot.

Fixes #24463

Test plan

  • Manually verify the top menu pills (Reporting, Personal, Administration, …) match the left menu padding on a Matomo page.
  • Hover + active states render a pill of the same height as the left menu items.
  • No regression on the icon-only items in the top bar (notifications, language, etc.).
  • UI screenshot tests: expect baseline updates wherever the top bar is captured.

Top-bar items had `padding: 4px` on labels (and `padding: 8px` on
icons), giving them a cramped feel inconsistent with the rest of the
chrome. The left menu's `.item` uses `padding: 8px 12px`; match that
rhythm so the active/hover pill (rendered via `&::after { inset: 0 }`)
grows to a comfortable size on both axes.

Fixes matomo-org#24463
@chippison chippison added this to the 5.11.0 milestone May 14, 2026
@chippison

Copy link
Copy Markdown
Contributor

Hi @mellonis
Thanks for your input on this!
Will check and try to get this merged.

Cheers

@github-actions

Copy link
Copy Markdown
Contributor

If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'.

@github-actions github-actions Bot added the Stale The label used by the Close Stale Issues action label May 29, 2026
@sgiehl sgiehl modified the milestones: 5.11.0, 5.12.0 Jun 5, 2026
@github-actions github-actions Bot removed the Stale The label used by the Close Stale Issues action label Jun 6, 2026
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.

[Bug] Spacing of top menu issues

3 participants