Repository navigation
fix: adjust language submenu placement and login label #8227
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
Merged
+2
−2
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review of the diff
The change itself is a single token (
left-start→right-start) on a nested language submenu. Nothing here is outright broken, but there are several things worth checking.1. Behavior / correctness
right-startis correct for LTR submenus, but this menu exists to switch interface language — so it must also work whendir="rtl"is set (Arabic, Hebrew, etc.). Hardcoding the side means RTL users get a submenu that opens away from the parent item. Derive it from direction:auto/auto-startplacement if available.fallback-placementsare enabled;left-starthad the symmetric problem on the left, so the real fix is probably "let the popper decide" rather than swapping a constant.trigger="hover"+@click.stop. Clicking the row does nothing (hover opens it), which contradicts the@click.stophandler and normal menu expectations. Also a hover submenu needs:trigger="click"(or['hover','focus']) for keyboard users.body, clicking a language option stops propagation to the parent's outside-click handler — verify the parent doesn't close (and cancel the language-change handler) before the selection runs.2. Accessibility
role="menu"/role="menuitem",aria-haspopup="menu",aria-expanded, and ArrowRight/Enter to open, ArrowLeft/Escape to close back to the parent item.trigger="hover"typically never updatesaria-expanded, so screen readers get no state feedback.3. Styling / Tailwind
py-[5px]breaks the 4px spacing rhythm — usepy-1(4px) orpy-1.5(6px).p-0!andtext-N600!(!important) signal specificity conflicts with the component's defaults. Prefer fixing the component defaults or using a proper prop over!important.class="w-full"on the dropdown trigger is fine; if the class lands on the popper it will force a 100%-width panel and can overflow. Verify which element receives it.w-fullon a trigger inside a popper resolves against the popper width, not the menu — fine here, but combined withp-0!on the parent item this is a fragile style coupling. A dedicatedsubmenu/nestedprop onMkDropdownItemwould be cleaner.:offset="[0, 4]").4. Minor / verification
const goLogin = () => {but the content is an SFC template with<!-- -->comments — git's enclosing-block heuristic is probably wrong here. Double-check the file/line you're patching (a.vuetemplatecan't live inside a JS function).placementprop with a sensible default so the next person doesn't flip it back.Suggested shape
(Exact prop names for fallback/offset depend on your popper wrapper.)
Bottom line: the one-line change is probably an improvement, but it should be direction-aware, should not rely on hover alone, and should let the popper flip/shift instead of hardcoding a side.