Skip to content

bug(buttons): align button types with m3 specs #29841

Closed

Description

@Mikastark

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

Hi Angular Material Team !
Thanks for all your hard work on this project.
Today I want to pointout the Material 3 specification for buttons mention 5 differents kind of buttons :

  • Elevated : currently named raised but wrong background color is applied (should be surface-container-low)
  • Filled : currently named flat
  • Filled tonal : not supported
  • Outlined : currently named flat
  • Text : not supported

I understand this is a very small and easy-to-workaround issue but it would be nice to have a better alignement with Material 3 specs and prevent developers to add extra (yet tiny) style code to get the expected appearance.

Futhermore, a appreciable enhancement whould be to regroup all css selectors for MatButton and MatAnchor directives into one mat-button and add an extra appearance input like cards does. Acceptable values would be elevated, filled, filled-tonal, outlined and text (default one)

Reproduction

If really needed, tell me...

Expected Behavior

  • Rename mat-raised-button to mat-elevated-button
  • Rename mat-flat-button to mat-filled-button
  • Add missing mat-filled-tonal-button
  • Rename mat-flat-button to mat-outlined-button
  • Add missing mat-text-button

Actual Behavior

cf. Expected Behavior

Environment

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

Activity

  1. added
    needs triage
    on Oct 7, 2024
  2. added
    P3
    and removed
    needs triage
    on Oct 9, 2024
  3. self-assigned this
    on Mar 13, 2025
  4. added a commit that references this issue on Mar 13, 2025
    f757c2f
  5. added a commit that references this issue on Mar 14, 2025
    e79f605
  6. angular-automatic-lock-bot commented on Apr 14, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3area: material/button

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions