Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(macros/AccessibilitySidebar): list subpages via en-US #11259

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Jun 5, 2024

Summary

Problem

The AccessibilitySidebar fails to render in translated-content, if one of these pages is not translated:

  • Web/Accessibility/Understanding_WCAG
  • Web/Accessibility/ARIA/attributes
  • Web/Accessibility/ARIA/roles

See: https://github.com/mdn/translated-content/actions/runs/9391342326/job/25863283761#step:7:45

Solution

Remove the /${locale}/docs/ prefix from the ListSubpagesForSidebar call, to ensure the English locale is used to determine the list of pages.


Screenshots

Before

image

After

image

How did you test this change?

Ran yarn && yarn dev with mdn/translated-content@94ae204.

Otherwise the macro fails if the entry page is not translated.
@caugner caugner requested a review from a team as a code owner June 5, 2024 21:58
@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Jun 5, 2024
Copy link
Contributor Author

@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.

Self-approval.

@caugner caugner merged commit 96bad13 into main Jun 10, 2024
13 checks passed
@caugner caugner deleted the list-accessibility-subpages-via-en-us branch June 10, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant