fix(docs-infra): add fallback submenu positions in menubar example#69391
Open
BHUVANSH855 wants to merge 1 commit into
Open
fix(docs-infra): add fallback submenu positions in menubar example#69391BHUVANSH855 wants to merge 1 commit into
BHUVANSH855 wants to merge 1 commit into
Conversation
4ac6e00 to
986ecf3
Compare
986ecf3 to
5a84474
Compare
|
Deployed adev-preview for c217fe8 to: https://ng-dev-previews-fw--pr-angular-angular-69391-adev-prev-r6bwxuug.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
Add fallback overlay positions for nested menubar submenus so they can open on the left side when there is insufficient space on the right.
5a84474 to
c217fe8
Compare
JeanMeche
reviewed
Jun 17, 2026
JeanMeche
left a comment
Member
There was a problem hiding this comment.
Could you please provide an illustration of the difference (screenshot or video capture). I wasn't able to find one
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Nested submenus in the ARIA menubar examples only define a single overlay position that opens to the right of the trigger element. When there is insufficient space on the right side of the viewport, the submenu can overflow off-screen instead of repositioning.
Issue Number: N/A
What is the new behavior?
Adds fallback overlay positions for nested submenus in the ARIA menubar examples. If there is not enough space to render the submenu on the right side, the CDK overlay can fall back to opening on the left side of the trigger element, helping keep submenu content visible within the viewport.
The update is applied consistently across the basic, material, and retro menubar examples.
Does this PR introduce a breaking change?
Other information
This change only updates overlay positioning configuration in the example templates and does not affect framework APIs or runtime behavior outside of the examples.