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(material/menu): use static elevation #29968

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Nov 5, 2024

Currently the menu's elevation is set using elevation classes, because earlier versions of the Material spec called for the elevation to increase for each level in a nested menu. That's no longer part of the spec and in v19 we won't include the elevation classes by default anymore. These changes remove the code that was handling the dynamic elevation and set the elevation using a token instead.

@crisbeto crisbeto added the target: rc This PR is targeted for the next release-candidate label Nov 5, 2024
@crisbeto crisbeto requested a review from a team as a code owner November 5, 2024 08:04
@crisbeto crisbeto requested review from amysorto and andrewseguin and removed request for a team November 5, 2024 08:04
Currently the menu's elevation is set using elevation classes, because earlier versions of the Material spec called for the elevation to increase for each level in a nested menu. That's no longer part of the spec and in v19 we won't include the elevation classes by default anymore. These changes remove the code that was handling the dynamic elevation and set the elevation using a token instead.
@crisbeto crisbeto force-pushed the menu-static-elevation branch from 34bf9ca to 05721dd Compare November 5, 2024 08:22
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Nov 5, 2024
@crisbeto crisbeto removed the request for review from amysorto November 5, 2024 12:49
@crisbeto crisbeto merged commit b072047 into angular:main Nov 5, 2024
24 checks passed
crisbeto added a commit that referenced this pull request Nov 5, 2024
Currently the menu's elevation is set using elevation classes, because earlier versions of the Material spec called for the elevation to increase for each level in a nested menu. That's no longer part of the spec and in v19 we won't include the elevation classes by default anymore. These changes remove the code that was handling the dynamic elevation and set the elevation using a token instead.

(cherry picked from commit b072047)
@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 Dec 6, 2024
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 target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants