This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(demo): Demo App Improvements (#252)
* Improved navigation * `Drawer` using an experimental `fixed` property * Corrected a few misspelled properties and examples * Add `mdc-surface` documentation * Add `mdc-ripple` documentation * Add documentation for `mdc-fab` absolute positioning * Update getting started guides to show required `MdcCoreModule` import * Update `mdc-list` examples to use `mdc-icon` * Add `mdc-list-group` code example * Add `border` list property documentation and examples * Added `getting-started` guide to documentation site Closes #254
- Loading branch information
Showing
58 changed files
with
613 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div fxLayout="column" fxFlex.gt-xs="50" fxLayoutGap="15px" class="mdc-padding"> | ||
<mdc-card *ngFor="let item of items" mdc-surface [routerLink]="[item.route]"> | ||
<mdc-card-primary> | ||
<h1 mdc-card-title>{{item.name}}</h1> | ||
</mdc-card-primary> | ||
<mdc-card-supporting-text> | ||
{{item.desc}} | ||
</mdc-card-supporting-text> | ||
</mdc-card> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { buttons } from '../../navigation'; | ||
|
||
@Component({ | ||
selector: 'buttons', | ||
templateUrl: './buttons.html' | ||
}) | ||
export class Buttons { | ||
items = buttons.filter(_ => _.desc.length > 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/demo-app/components/fab-demo/fab-demo.ts → ...p/components/buttons/fab-demo/fab-demo.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div fxLayout="column" fxFlex.gt-xs="50" fxLayoutGap="15px" class="mdc-padding"> | ||
<mdc-card *ngFor="let item of items" mdc-surface [routerLink]="[item.route]"> | ||
<mdc-card-primary> | ||
<h1 mdc-card-title>{{item.name}}</h1> | ||
</mdc-card-primary> | ||
<mdc-card-supporting-text> | ||
{{item.desc}} | ||
</mdc-card-supporting-text> | ||
</mdc-card> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { coreLinks } from '../../navigation'; | ||
|
||
@Component({ | ||
selector: 'core', | ||
templateUrl: './core.html' | ||
}) | ||
export class Core { | ||
items = coreLinks.filter(_ => _.desc.length > 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div fxLayout="column" class="mdc-padding"> | ||
<div fxLayout="column" fxLayoutAlign="start start" class="mdc-padding"> | ||
<h1 mdc-typography-display1>Dialog</h1> | ||
<div mdc-typography-subheading2>Dialogs inform users about a specific task, require decisions, or involve multiple tasks.</div> | ||
<div class="info-banner" mdc-typography-subheading1> | ||
|
@@ -24,7 +24,7 @@ <h1 mdc-typography-display1>Dialog</h1> | |
</thead> | ||
<tbody> | ||
<tr> | ||
<td>clickOutsideCloses: boolean</td> | ||
<td>clickOutsideToClose: boolean</td> | ||
<td>Close the dialog if user clicks on the backdrop. (Default: true)</td> | ||
</tr> | ||
<tr> | ||
|
@@ -182,7 +182,7 @@ <h1 mdc-typography-display1>Dialog</h1> | |
<span style="color:#89bdff"></<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-body</span>></span> | ||
<span style="color:#89bdff"><<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-footer</span>></span> | ||
<span style="color:#e0c589"><<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-dialog-button</span> [<span style="color:#e0c589">cancel</span>]=<span style="color:#65b042">"true"</span>></span>Decline<span style="color:#e0c589"></<span style="color:#e0c589">button</span>></span> | ||
<span style="color:#e0c589"><<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-dialog-button</span> [<span style="color:#e0c589">action</span>]=<span style="color:#65b042">"true"</span> [<span style="color:#e0c589">accept</span>]=<span style="color:#65b042">"true"</span>></span>Accept<span style="color:#e0c589"></<span style="color:#e0c589">button</span>></span> | ||
<span style="color:#e0c589"><<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-dialog-button</span> [<span style="color:#e0c589">accept</span>]=<span style="color:#65b042">"true"</span>></span>Accept<span style="color:#e0c589"></<span style="color:#e0c589">button</span>></span> | ||
<span style="color:#89bdff"></<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-footer</span>></span> | ||
<span style="color:#89bdff"></<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog</span>></span> | ||
</pre> | ||
|
@@ -281,7 +281,7 @@ <h1 mdc-typography-display1>Dialog</h1> | |
</mdc-dialog-body> | ||
<mdc-dialog-footer> | ||
<button mdc-dialog-button [cancel]="true">Decline</button> | ||
<button mdc-dialog-button [action]="true" [accept]="true">Accept</button> | ||
<button mdc-dialog-button [accept]="true">Accept</button> | ||
</mdc-dialog-footer> | ||
</mdc-dialog> | ||
|
||
|
@@ -303,14 +303,14 @@ <h1 mdc-typography-display1>Dialog</h1> | |
</mdc-dialog-header> | ||
<mdc-dialog-body> | ||
<mdc-list [avatar]="true"> | ||
<mdc-list-item (click)="closeDialogGmail();"> | ||
<i mdc-list-item-start material-icon class="grey-avatar">person</i>[email protected] | ||
<mdc-list-item (click)="closeDialogGmail();" mdc-surface> | ||
<mdc-icon mdc-list-item-start class="grey-avatar">person</mdc-icon>[email protected] | ||
</mdc-list-item> | ||
<mdc-list-item (click)="closeDialogGmail();"> | ||
<i mdc-list-item-start material-icon class="grey-avatar">person</i>[email protected] | ||
<mdc-list-item (click)="closeDialogGmail();" mdc-surface> | ||
<mdc-icon mdc-list-item-start class="grey-avatar">person</mdc-icon>[email protected] | ||
</mdc-list-item> | ||
<mdc-list-item (click)="closeDialogGmail();"> | ||
<i mdc-list-item-start material-icon class="grey-avatar">add</i>add account | ||
<mdc-list-item (click)="closeDialogGmail();" mdc-surface> | ||
<mdc-icon mdc-list-item-start class="grey-avatar">add</mdc-icon>add account | ||
</mdc-list-item> | ||
</mdc-list> | ||
</mdc-dialog-body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.