@@ -23,12 +23,13 @@ Find the [demo here](https://devintent-dev.firebaseapp.com/button-bar). Resize t
2323features.
2424
2525#### Button Bar Template ([ example] ( https://github.com/DevIntent/dev/blob/master/src/app/button-bar-demo/button-bar-demo.component.html ) )
26+
2627``` html
27- <dev-button-bar [navItems] =" navItems" class =" mat-elevation-z1" ></dev-button-bar >
28- <router-outlet ></router-outlet >
28+ <dev-button-bar [navItems] =" navItems" class =" mat-elevation-z1" ></dev-button-bar > <router-outlet ></router-outlet >
2929```
3030
3131#### Button Bar Component ([ example] ( https://github.com/DevIntent/dev/blob/master/src/app/button-bar-demo/button-bar-demo.component.ts ) )
32+
3233``` ts
3334import {NavItem } from ' @devintent/dev' ;
3435...
@@ -43,9 +44,11 @@ this.navItems = [
4344];
4445...
4546```
47+
4648Find icon names by searching the [ Material Design Icons Tool] ( https://material.io/tools/icons/ ) .
4749
4850#### Button Bar Module
51+
4952``` ts
5053import {DevintentModule } from ' @devintent/dev' ;
5154...
@@ -66,6 +69,7 @@ The component themes work with Angular Material [Custom Themes](https://material
6669which are defined in ` .scss ` files.
6770
6871You should define your theme in a [ SASS Partial] ( https://sass-lang.com/guide ) . For example, ` _theme.scss ` :
72+
6973``` scss
7074// Custom Theming for Angular Material
7175// For more information: https://material.angular.io/guide/theming
@@ -85,15 +89,16 @@ $demo-theme: mat-light-theme($demo-primary, $demo-accent, $demo-warn);
8589
8690$demo-typography : mat-typography-config (
8791 //$font-family: ' Roboto, monospace' ,
88- //$headline: mat-typography-level (32px , 48px , 700 ),
89- //$body-1: mat-typography-level (16px , 24px , 500 )
92+ //$headline: mat-typography-level (32px , 48px , 700 ),
93+ //$body-1: mat-typography-level (16px , 24px , 500 )
9094);
9195```
9296
9397Then your primary SCSS entrypoint should import this theme file and pass the theme into both the Angular Material
9498and DevIntent Dev components.
99+
95100``` scss
96- @import " theme" ;
101+ @import ' theme' ;
97102@import ' ~@devintent/dev/theming' ;
98103
99104// Include the common styles for Angular Material. We include this here so that you only
@@ -108,5 +113,6 @@ and DevIntent Dev components.
108113// components know about your theme.
109114@include dev-theme ($demo-theme );
110115```
116+
111117Note: Custom typography is not yet implemented for these components, but you can use it with Angular Material components.
112- See more in their [ Typography Guide] ( https://material.angular.io/guide/typography ) .
118+ See more in their [ Typography Guide] ( https://material.angular.io/guide/typography ) .
0 commit comments