8000 Open masthead dropdowns towards the page in RTL locales by marsluca · Pull Request #54402 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Open masthead dropdowns towards the page in RTL locales - #54402

Merged
edewit merged 1 commit into
keycloak:mainfrom
marsluca:rtl-masthead-dropdowns
Oct 28, 2026
Merged

edewit merged 1 commit into
keycloak:mainfrom
marsluca:rtl-masthead-dropdowns

Conversation

@marsluca
Copy link
Copy Markdown
Contributor

Closes #54359

The masthead dropdowns use popper position "right", which PatternFly treats as a physical side. In RTL locales the toggles sit near the left edge, so the Help menu opened off the left side of the screen (around -350 px at 1100 and 1440 px wide).

I switched KeycloakDropdown and HelpHeader to "end", which PatternFly resolves to right in LTR and to left in RTL. LTR placement stays the same.

Testing:

  • New RTL case in test/masthead/main.spec.ts: it logs in as a user with the Arabic locale and checks that the Help menu is fully inside the viewport. It fails on main and passes with this change.
  • Masthead specs pass on Chromium.
  • I also checked the user menu and the kebab in the admin and account consoles at 1440, 1100 and 375 px. LTR positions are the same as before, and in RTL they stay on screen.

A few dropdowns outside the masthead also use "right". I didn't touch them to keep this PR to the issue.

AI-assisted (Claude Code).

The masthead dropdowns used popper position "right", which PatternFly
keeps physical. In RTL the toggles sit near the left edge, so the Help
menu opened past the left edge of the screen. Use "end", which follows
the text direction. LTR placement is unchanged.

Closes keycloak#54359

Signed-off-by: Luca Marsella <34103646+marsluca@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 28, 2026 09:31
@marsluca
marsluca requested a review from a team as a code owner October 28, 2026 09:31
@marsluca
marsluca requested a review from a team as a code owner October 28, 2026 09:31
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@marsluca
marsluca requested a balanced review from Copilot October 28, 2026 09:42
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@edewit
edewit enabled auto-merge (squash) October 28, 2026 10:05
@edewit
edewit merged commit 31ab23a into keycloak:main Oct 28, 2026
158 of 160 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants

0