Skip to content

fix(sidebar): dedent current page highlight#1407

Merged
caugner merged 1 commit intomainfrom
1388-sidebar-current-dedent
Mar 20, 2026
Merged

fix(sidebar): dedent current page highlight#1407
caugner merged 1 commit intomainfrom
1388-sidebar-current-dedent

Conversation

@LeoMcA
Copy link
Copy Markdown
Member

@LeoMcA LeoMcA commented Mar 20, 2026

Fixes #1388.

Handles both normal cases and when there's an icon on the left.

Now we keep the alignment of the text consistent regardless of whether the item is highlighted or not.

Screenshots:

before after
sidebar-highlighted-code-and-text-firefox-1366x768-dpr-1 sidebar-highlighted-code-and-text-firefox-1366x768-dpr-1
sidebar-highlighted-code-element-firefox-1366x768-dpr-1 sidebar-highlighted-code-element-firefox-1366x768-dpr-1
sidebar-html-collapsed-firefox-1366x830-dpr-1 sidebar-html-collapsed-firefox-1366x830-dpr-1

@LeoMcA LeoMcA requested a review from a team as a code owner March 20, 2026 17:08
@LeoMcA LeoMcA requested a review from caugner March 20, 2026 17:08
@github-actions
Copy link
Copy Markdown
Contributor

7f4f353 was deployed to: https://fred-pr1407.review.mdn.allizom.net/

Copy link
Copy Markdown
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

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

Very nice!

@caugner caugner merged commit 3fdb2d9 into main Mar 20, 2026
12 checks passed
@caugner caugner deleted the 1388-sidebar-current-dedent branch March 20, 2026 17:24
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.

Current page in sidebar item has confusing indentation

2 participants