Skip to content

Commit 520d833

Browse files
donroycokara
authored andcommitted
docs(button): add explanation for FAB abbreviation (#5790)
1 parent 1c7754a commit 520d833

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/lib/button/button.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ There are five button variants, each applied as an attribute:
2121

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

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

src/lib/button/button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
}
1414

15-
// Only flat buttons (not raised, fabs or icon buttons) have a hover style.
15+
// Only flat buttons (not raised, FABs or icon buttons) have a hover style.
1616
// Use the same visual treatment for hover as for focus.
1717
.mat-button:hover .mat-button-focus-overlay {
1818
opacity: 1;

src/lib/sidenav/sidenav.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ html, body, material-app, md-sidenav-container, .my-content {
6868
```
6969

7070
### FABs inside sidenav
71-
For a sidenav with a FAB (or other floating element), the recommended approach is to place the FAB
71+
For a sidenav with a FAB (Floating Action Button) or other floating element, the recommended approach is to place the FAB
7272
outside of the scrollable region and absolutely position it.

0 commit comments

Comments
 (0)