Skip to content

fix(material/menu): account for menu padding different from the default #16169

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
merged 1 commit into from
Feb 27, 2022

Conversation

crisbeto
Copy link
Member

Currently we use the hardcoded value of the menu padding to offset the panel so the two menu triggers align. Since the value is in TS, the logic breaks down if the user has set their own padding. These changes add some logic to compute the padding the first time a sub-menu is opened.

Fixes #16167.

@crisbeto crisbeto added P4 A relatively minor issue that is not relevant to core functions target: patch This PR is targeted for the next patch release labels May 31, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 31, 2019
@crisbeto crisbeto force-pushed the 16167/custom-menu-padding branch from 18779fd to 3a495f9 Compare July 20, 2019 15:32
@crisbeto crisbeto force-pushed the 16167/custom-menu-padding branch from 3a495f9 to 34cd5dd Compare August 4, 2019 17:45
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Sep 5, 2019
@mmalerba mmalerba removed the lgtm label Jul 31, 2020
@andrewseguin andrewseguin added needs rebase and removed cla: yes PR author has agreed to Google's Contributor License Agreement labels Dec 29, 2021
@crisbeto crisbeto force-pushed the 16167/custom-menu-padding branch from 34cd5dd to cef9436 Compare February 26, 2022 17:04
@crisbeto crisbeto requested a review from a team as a code owner February 26, 2022 17:04
@crisbeto crisbeto changed the title fix(menu): account for menu padding different from the default fix(material/menu): account for menu padding different from the default Feb 26, 2022
@crisbeto crisbeto force-pushed the 16167/custom-menu-padding branch 8 times, most recently from 77e98e8 to 6965f95 Compare February 27, 2022 11:51
Currently we use the hardcoded value of the menu padding to offset the panel so the two menu triggers align. Since the value is in TS, the logic breaks down if the user has set their own padding. These changes add some logic to compute the padding the first time a sub-menu is opened.

Fixes angular#16167.
@crisbeto crisbeto force-pushed the 16167/custom-menu-padding branch from 6965f95 to 153f3ec Compare February 27, 2022 12:11
@crisbeto crisbeto added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Feb 27, 2022
@crisbeto crisbeto merged commit 4429352 into angular:master Feb 27, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker P4 A relatively minor issue that is not relevant to core functions target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MENU_PANEL_TOP_PADDING does not allow customization
5 participants