bug(buttons): align button types with m3 specs #29841
Labels
area: material/button
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
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 :
raised
but wrong background color is applied (should besurface-container-low
)flat
flat
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
andMatAnchor
directives into onemat-button
and add an extraappearance
input like cards does. Acceptable values would beelevated
,filled
,filled-tonal
,outlined
andtext
(default one)Reproduction
If really needed, tell me...
Expected Behavior
mat-raised-button
tomat-elevated-button
mat-flat-button
tomat-filled-button
mat-filled-tonal-button
mat-flat-button
tomat-outlined-button
mat-text-button
Actual Behavior
cf. Expected Behavior
Environment
The text was updated successfully, but these errors were encountered: