the md-toolbar in angular-material 2 doesn't have a shadow. I want to define for my toolbar
the mat-elevation-z8 class is an Angular Material elevation class that allows you to add separation between elements along the z-axis.
Elevation (Android) Elevation is the relative depth, or distance, between two surfaces along the z-axis. Specifications: Elevation is measured in the same units as the x and y axes, typically in density-independent pixels (dp).
Measuring elevation Elevation in Material Design is measured as the distance between Material surfaces. The distance from the front of one Material surface to the front of... Surfaces at the same elevation can appear differently when other surfaces are behind them.
You can use the mat-elevation-z#
classes.
#
can stand for a number between 1-24
<mat-toolbar class="mat-elevation-z4"> With Shadow </mat-toolbar>
https://material.angular.io/guide/elevation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With