diff --git a/src/app/components/design-patterns/design-patterns.component.ts b/src/app/components/design-patterns/design-patterns.component.ts index a8d3d778a6..9eac5934b9 100644 --- a/src/app/components/design-patterns/design-patterns.component.ts +++ b/src/app/components/design-patterns/design-patterns.component.ts @@ -28,6 +28,11 @@ export class DesignPatternsComponent { icon: 'kitchen', route: 'navigation-drawer', title: 'Navigation Drawer Patterns', + }, { + description: 'Feedback for empty elements', + icon: 'space_bar', + route: 'empty-states', + title: 'Empty State Patterns', }]; constructor(private _changeDetectorRef: ChangeDetectorRef, diff --git a/src/app/components/design-patterns/design-patterns.module.ts b/src/app/components/design-patterns/design-patterns.module.ts index 99a7b82094..1a33cc2519 100644 --- a/src/app/components/design-patterns/design-patterns.module.ts +++ b/src/app/components/design-patterns/design-patterns.module.ts @@ -9,6 +9,7 @@ import { CardsComponent } from './cards/cards.component'; import { AlertsComponent } from './alerts/alerts.component'; import { ManagementListComponent } from './management-list/management-list.component'; import { NavigationDrawerComponent } from './navigation-drawer/navigation-drawer.component'; +import { EmptyStatesComponent } from './empty-states/empty-states.component'; import { MatButtonModule } from '@angular/material/button'; import { MatListModule } from '@angular/material/list'; @@ -40,6 +41,7 @@ import { ToolbarModule } from '../../components/toolbar/toolbar.module'; AlertsComponent, ManagementListComponent, NavigationDrawerComponent, + EmptyStatesComponent, ], imports: [ /** Angular Modules */ diff --git a/src/app/components/design-patterns/design-patterns.routes.ts b/src/app/components/design-patterns/design-patterns.routes.ts index 020c8983aa..c3817a8a21 100644 --- a/src/app/components/design-patterns/design-patterns.routes.ts +++ b/src/app/components/design-patterns/design-patterns.routes.ts @@ -5,6 +5,7 @@ import { CardsComponent } from './cards/cards.component'; import { AlertsComponent } from './alerts/alerts.component'; import { ManagementListComponent } from './management-list/management-list.component'; import { NavigationDrawerComponent } from './navigation-drawer/navigation-drawer.component'; +import { EmptyStatesComponent } from './empty-states/empty-states.component'; const routes: Routes = [{ children: [{ @@ -19,6 +20,9 @@ const routes: Routes = [{ }, { component: NavigationDrawerComponent, path: 'navigation-drawer', + }, { + component: EmptyStatesComponent, + path: 'empty-states', }, ], component: DesignPatternsComponent, diff --git a/src/app/components/design-patterns/empty-states/empty-states.component.html b/src/app/components/design-patterns/empty-states/empty-states.component.html new file mode 100644 index 0000000000..dfaa0ce5b9 --- /dev/null +++ b/src/app/components/design-patterns/empty-states/empty-states.component.html @@ -0,0 +1,97 @@ +
When no content is avaiable for a section and the user needs addtional instruction or feedback.
+Use the content type icon if possible.
+Follow the Material Design spec for language & text.
+Optionally include a primary action button (raised with accent color).
+Optionally include a secondary action button (not raised).
+Empty State Guidelines
+ +