Skip to content

bug(MatButton): Disable Ripple doesn't stop ripple effect #27507

@SKhalidQ

Description

@SKhalidQ

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

15.2.8

Description

When adding the 'disableRipple' property to a material button, this should stop adding a ripple effect for when the button is clicked. Instead the ripple is still enabled.
This was not an issue in previous versions of Angular Material. Have projects with an old version of Angular and Mterial where I have successfully disabled this animation/effect.

Reproduction

Could not get StackBlitz to work with the latest version of Angular Material.

Steps to reproduce:

  1. Create a button
  2. Add 'mat-button' property to the button
  3. Add a 'disableRipple' property to the button
  4. Go to the site and click the button

Expected Behavior

Ripple effect should be disabled and not visible when user clicks a material button.

Actual Behavior

Ripple effect is visible when user clicks on a material button.

Environment

  • Angular: v16.1.4
  • CDK/Material: v16.0.6/v16.1.4
  • Browser(s): Tested on Microsoft Edge, Firefox.
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: material/button

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions