Skip to content

docs(button): add mat-flat-button #11587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/lib/button/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@ and accessible experience for users. A `<button>` element should be used wheneve
is performed. An `<a>` element should be used whenever the user will _navigate_ to another view.


There are five button variants, each applied as an attribute:
There are several button variants, each applied as an attribute:

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


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

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