Skip to content

Commit 2082af7

Browse files
sir-boformerjosephperrott
authored andcommitted
docs(button): add mat-flat-button (#11587)
1 parent 74f4364 commit 2082af7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/lib/button/button.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,22 @@ and accessible experience for users. A `<button>` element should be used wheneve
88
is performed. An `<a>` element should be used whenever the user will _navigate_ to another view.
99

1010

11-
There are five button variants, each applied as an attribute:
11+
There are several button variants, each applied as an attribute:
1212

1313
| Attribute | Description |
1414
|----------------------|--------------------------------------------------------------------------|
15-
| `mat-button` | Rectangular button w/ no elevation. |
16-
| `mat-raised-button` | Rectangular button w/ elevation |
17-
| `mat-stroked-button` | Rectangular button w/ an outline border |
15+
| `mat-button` | Rectangular text button w/ no elevation |
16+
| `mat-raised-button` | Rectangular contained button w/ elevation |
17+
| `mat-flat-button` | Rectangular contained button w/ no elevation |
18+
| `mat-stroked-button` | Rectangular outlined button w/ no elevation |
1819
| `mat-icon-button` | Circular button with a transparent background, meant to contain an icon |
1920
| `mat-fab` | Circular button w/ elevation, defaults to theme's accent color |
2021
| `mat-mini-fab` | Same as `mat-fab` but smaller |
2122

2223

2324
### Theming
2425
Buttons can be colored in terms of the current theme using the `color` property to set the
25-
background color to `primary`, `accent`, or `warn`. By default, only FABs (Floating Action Button)
26-
are colored; the default background color for `mat-button` and `mat-raised-button` matches the theme's
27-
background color.
26+
background color to `primary`, `accent`, or `warn`.
2827

2928
### Capitalization
3029
According to the Material design spec button text has to be capitalized, however we have opted not

0 commit comments

Comments
 (0)