Skip to content

bug(mat-icon-button,mat-fab,mat-raised-button,mat-flat-button): Hover effect is missing #24157

@amakhrov

Description

@amakhrov

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

This is largely a duplicate of #3946
The resolution in the original issue was "matches the spec".

Well, there is no spec for icon button per say. But the toggle button in the current spec (v2) clearly has the hover state: https://material.io/components/buttons#toggle-button
Screen Shot 2022-01-03 at 2 26 21 PM

For FAB, the spec doesn't say this explicitly, but the demo shows the change of elevation when hovered (https://material.io/components/buttons-floating-action-button#usage). The v3 spec explicitly calls out the elevation change, as well as background opacity (https://m3.material.io/components/floating-action-button/specs)
Raised and flat button - similar to FAB.

Reproduction

E.g. demos in https://material.angular.io/components/button/examples

Expected Behavior

Hover effect should exist for all button types

Actual Behavior

Hover effect is missing

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/button

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions