Skip to content

bug(FabButton): matFab shows hover and focus styling with disabledInteractive #32146

@csvn

Description

@csvn

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

The matFab button behaves differently from matButton with the disabledInteractive property. When hovering or clicking the FAB button, it will animate the box shadow such that it looks interactive even if its not.

20251022-0910-05.3975121.mp4
20251022-0916-20.3112144.mp4

Reproduction

StackBlitz link: https://stackblitz.com/edit/rfnrrfrf?file=src%2Fexample%2Fbutton-disabled-interactive-example.css
Steps to reproduce:

  1. Create a matFab with disabled + disabledInteractive
  2. Hover the button
  3. Click the button

Expected Behavior

  1. No hover box-shadow changes
  2. No mousedown changes

Actual Behavior

  1. Hover will "raise" the button (increase box-shadow)
  2. Clicking the button animates it

Environment

  • Angular: 20.2.9
  • CDK/Material: 20.2.2
  • Browser(s): Chrome/Edge (probably all)
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions