Skip to content

bug(mat-menu): mat menu density is not applied #26759

@electrofLy

Description

@electrofLy

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Lowering the density of mat menu component does not change the density of a mat menu item.

Reproduction

https://stackblitz.com/edit/angular-t3wxbs?file=src%2Ftheme.scss

Steps to reproduce:

  1. Open theme.scss and set density to -2
  2. Open a mat menu item and check it's height

Expected Behavior

Height with density of 0 - 48px
Height with density of -2 - 36px

Actual Behavior

Height with density of 0 - 48px
Height with density of -2 - 48px

Environment

  • Angular: 15.2.2
  • CDK/Material: 15.2.2
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

needs triageThis issue needs to be triaged by the team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions