Skip to content

bug(mat-button): Can't apply theme for FAB and Mini-FAB buttons #26921

@jakubkirylo

Description

@jakubkirylo

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

When defining theme it's possible to apply it to all components like:
@include mat.all-component-themes($theme);
But it was also possible to apply it to only specific components like:
@include mat.button-theme($theme);

However, the theme gets applied to buttons but not FAB and Mini FAB buttons.

Reproduction

Steps to reproduce:

  1. Apply theme to mat-button component only

Forked official example:
https://stackblitz.com/edit/angular-adcpb4?file=src/theme.scss

Expected Behavior

Theme is applied to all buttons, including FAB and Mini-FAB.
image

Actual Behavior

Theme is not applied to FAB and Mini-FAB
image

Environment

  • Angular: 15.2.6
  • CDK/Material: 15.2.6
  • Browser(s): Chromium 112.0.5615.49
  • 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