Skip to content

Conversation

@brysonbw
Copy link
Contributor

@brysonbw brysonbw commented Sep 26, 2025

Description

Changes

  • Apply external class to external links in menu

Additional details

Before

image

After

image

Related issues and pull requests

@brysonbw brysonbw requested a review from a team as a code owner September 26, 2025 05:07
@brysonbw
Copy link
Contributor Author

I resembled what we have for the same github link in the footer here:

image

If we want to mark it as external in a different way, that’s smooth - I just thought I’d start by creating a PR with my initial approach.

@argl argl added the needs content decision This issue needs a decision from the MDN Content Team before it can proceed. label Sep 29, 2025
@caugner
Copy link
Contributor

caugner commented Oct 3, 2025

After

image

In this screenshot, the external link icon does not look properly aligned (horizontally + vertically).

If this was as trivial as adding the "external" class, then we would have already done so. The CSS needs to be reworked carefully here, maintaining the gap to the icon on the left, without applying this gap to the external icon on the right.

@caugner caugner changed the title fix (ui): mark github link in about menu as external fix(ui): mark github link in about menu as external Oct 3, 2025
@brysonbw
Copy link
Contributor Author

brysonbw commented Oct 3, 2025

Ok, smooth. Thanks for the feedback

@caugner
Copy link
Contributor

caugner commented Oct 3, 2025

I'm fixing the spacing issue in #861. Once that landed, it should be fairly easy to add the external link indicator.

@caugner caugner requested review from a team and caugner and removed request for a team October 23, 2025 11:40
@caugner caugner changed the title fix(ui): mark github link in about menu as external fix(menu): mark "MDN on GitHub" link as external Oct 23, 2025
Copy link
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.

The menu rendering logic has completely changed (see the merge conflict).

Note that the "MDN on GitHub" link now already gets the English indicator in translated locales (see https://developer.mozilla.org/fr/), which is added via ::after.

So when you add the external class, you'll probably need special handling that adds the external link indicator after the English indicator.

Converting to draft for now.

@caugner caugner marked this pull request as draft October 23, 2025 11:44
@brysonbw brysonbw force-pushed the about-menu-mark-github-link-as-external branch from 63cf413 to a6c9c88 Compare October 23, 2025 14:06
@brysonbw brysonbw marked this pull request as ready for review October 23, 2025 14:06
@brysonbw brysonbw requested a review from caugner October 23, 2025 14:08
@brysonbw brysonbw force-pushed the about-menu-mark-github-link-as-external branch from a6c9c88 to b02144d Compare October 23, 2025 14:18
Copy link
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.

LGTM overall, but let's generalize.

Note that in French, the external indicator now replaces the (angl.) indicator:

  • Before:
    image
  • After:
    image

But I think that's actually fine, as we don't have the (angl.) indicator on external links in content either.

@brysonbw brysonbw force-pushed the about-menu-mark-github-link-as-external branch from b02144d to 579829b Compare October 24, 2025 01:51
@brysonbw brysonbw requested a review from caugner October 24, 2025 01:53
@caugner caugner requested a review from LeoMcA October 24, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs content decision This issue needs a decision from the MDN Content Team before it can proceed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants