Skip to content

Commit 76f5be0

Browse files
authored
docs: use proper shadow classes in examples (#33494)
Updates the various examples so they use the new `mat-shadow-*` classes. Fixes #33459.
1 parent 9edf12d commit 76f5be0

38 files changed

Lines changed: 41 additions & 43 deletions

File tree

src/components-examples/material-experimental/column-resize/default-enabled-column-resize-flex/default-enabled-column-resize-flex-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-table [dataSource]="dataSource" class="mat-elevation-z8 example-table">
1+
<mat-table [dataSource]="dataSource" class="mat-shadow-2 example-table">
22
<!-- Position Column -->
33
<ng-container matColumnDef="position" sticky>
44
<mat-header-cell *matHeaderCellDef [matResizableMaxWidthPx]="100"> No. </mat-header-cell>

src/components-examples/material-experimental/column-resize/default-enabled-column-resize/default-enabled-column-resize-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8 example-table">
1+
<table mat-table [dataSource]="dataSource" class="mat-shadow-2 example-table">
22
<!-- Position Column -->
33
<ng-container matColumnDef="position" sticky>
44
<th mat-header-cell *matHeaderCellDef [matResizableMaxWidthPx]="100"> No. </th>

src/components-examples/material-experimental/column-resize/opt-in-column-resize/opt-in-column-resize-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<table mat-table columnResize [dataSource]="dataSource" class="mat-elevation-z8 example-table">
1+
<table mat-table columnResize [dataSource]="dataSource" class="mat-shadow-2 example-table">
22
<!-- Position Column -->
33
<ng-container matColumnDef="position" sticky>
44
<th mat-header-cell *matHeaderCellDef resizable [matResizableMaxWidthPx]="100"> No. </th>

src/components-examples/material/core/elevation-overview/elevation-overview-example.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<div class="example-container"
2-
[class.mat-elevation-z2]="!isActive"
3-
[class.mat-elevation-z8]="isActive">
1+
<div class="example-container" [class.mat-shadow-1]="!isActive" [class.mat-shadow-4]="isActive">
42
Example
53
</div>
64

src/components-examples/material/core/ripple-overview/ripple-overview-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</mat-form-field>
1313

1414

15-
<div class="example-ripple-container mat-elevation-z4"
15+
<div class="example-ripple-container mat-shadow-2"
1616
matRipple
1717
[matRippleCentered]="centered"
1818
[matRippleDisabled]="disabled"

src/components-examples/material/table/table-basic/table-basic-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
1+
<table mat-table [dataSource]="dataSource" class="mat-shadow-2">
22

33
<!--- Note that these columns can be defined in any order.
44
The actual rendered columns are set as a property on the row definition" -->

src/components-examples/material/table/table-column-styling/table-column-styling-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8 demo-table">
1+
<table mat-table [dataSource]="dataSource" class="mat-shadow-2 demo-table">
22
<!-- Position Column -->
33
<ng-container matColumnDef="demo-position">
44
<th mat-header-cell *matHeaderCellDef> No. </th>

src/components-examples/material/table/table-drag-drop/table-drag-drop-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-table #table [dataSource]="dataSource" class="mat-elevation-z8" cdkDropList (cdkDropListDropped)="drop($event)"
1+
<mat-table #table [dataSource]="dataSource" class="mat-shadow-2" cdkDropList (cdkDropListDropped)="drop($event)"
22
cdkDropListData="dataSource">
33
<!-- Position Column -->
44
<ng-container matColumnDef="position" sticky>

src/components-examples/material/table/table-dynamic-array-data/table-dynamic-array-data-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</button>
1212
</div>
1313

14-
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8 demo-table">
14+
<table mat-table [dataSource]="dataSource" class="mat-shadow-2 demo-table">
1515
<!-- Position Column -->
1616
<ng-container matColumnDef="position">
1717
<th mat-header-cell *matHeaderCellDef>No.</th>

src/components-examples/material/table/table-dynamic-columns/table-dynamic-columns-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<button matButton="elevated" (click)="removeColumn()"> Remove column </button>
33
<button matButton="elevated" (click)="shuffle()"> Shuffle </button>
44

5-
<table mat-table [dataSource]="data" class="mat-elevation-z8">
5+
<table mat-table [dataSource]="data" class="mat-shadow-2">
66
@for (column of displayedColumns; track column) {
77
<ng-container [matColumnDef]="column">
88
<th mat-header-cell *matHeaderCellDef> {{column}} </th>

0 commit comments

Comments
 (0)