Description
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
Version 19 allows to redefine the button height using the filled-container-height
, outlined-container-height
and protected-container-height
.
However the inner mat-mdc-button-touch-target width and height are hard coded to 48px.
Which means, if we define a small button, touch area will overflow.
This behavior is present in the documentation example, where the two button-icons have a width and height of 40px
but a touch target of 48px
.
Reproduction
- Open the link
- Click bellow the button
Expected Behavior
touch target height and width should be computed from the --mdc-filled-button-container-height
variable.
Actual Behavior
Clicking outside of the button trigger the event.
Environment
Angular CLI: 19.2.0
Node: 20.19.1
Package Manager: npm 10.8.2
OS: linux x64
Package Version
@angular-devkit/architect 0.1902.0
@angular-devkit/core 19.2.0
@angular-devkit/schematics 19.2.0
@angular/cdk 19.2.17
@angular/material 19.2.17
@schematics/angular 19.2.0
rxjs 7.8.1
typescript 5.8.2
zone.js 0.15.0