Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 7495c9f

Browse files
committed
fix: update component categories screenshots to M3
1 parent bd47db2 commit 7495c9f

File tree

73 files changed

+177
-237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+177
-237
lines changed

scenes/src/app/scenes/autocomplete/autocomplete-scene.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
matInput
77
[formControl]="myControl"
88
[matAutocomplete]="auto">
9-
<mat-autocomplete #auto="matAutocomplete">
10-
<mat-option *ngFor="let option of options" [value]="option">
11-
{{option}}
12-
</mat-option>
9+
<mat-autocomplete autoActiveFirstOption #auto="matAutocomplete">
10+
@for (option of options; track option) {
11+
<mat-option [value]="option">{{option}}</mat-option>
12+
}
1313
</mat-autocomplete>
1414
</mat-form-field>
1515
</form>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<mat-list>
22
<mat-list-item>
3-
<mat-icon>favorite</mat-icon>
4-
Favorite
3+
<mat-icon matListItemIcon>favorite</mat-icon>
4+
<div matListItemTitle>Favorite</div>
55
</mat-list-item>
66
<mat-list-item>
7-
<mat-icon>share</mat-icon>
8-
Share
7+
<mat-icon matListItemIcon>share</mat-icon>
8+
<div matListItemTitle>Share</div>
99
</mat-list-item>
1010
</mat-list>
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
.mat-bottom-sheet-container {
22
min-width: 0 !important;
33
width: 250px;
4-
}
5-
6-
.mat-icon {
7-
margin-right: 24px;
8-
}
9-
10-
.cdk-overlay-backdrop {
11-
opacity: 0 !important;
4+
border-top-left-radius: var(--mat-bottom-sheet-container-shape);
5+
border-top-right-radius: var(--mat-bottom-sheet-container-shape);
126
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<mat-button-toggle-group class="scene-button-toggle" name="fontStyle" aria-label="Font Style">
2-
<mat-button-toggle value="bold" class="scene-button-toggle-bold">
1+
<mat-button-toggle-group class="scene-button-toggle" aria-label="Font Style">
2+
<mat-button-toggle value="bold">
33
<mat-icon>format_align_left</mat-icon>
44
</mat-button-toggle>
5-
<mat-button-toggle value="italic" class="scene-button-toggle-italic">
5+
<mat-button-toggle value="italic">
66
<mat-icon>format_align_justify</mat-icon>
77
</mat-button-toggle>
8-
<mat-button-toggle value="underline" class="scene-button-toggle-underline" [checked]="true">
8+
<mat-button-toggle value="underline" [checked]="true">
99
<mat-icon>format_align_right</mat-icon>
1010
</mat-button-toggle>
1111
</mat-button-toggle-group>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.scene-button-toggle {
2+
--mat-standard-button-toggle-selected-state-text-color: var(--mat-icon-color);
3+
}

scenes/src/app/scenes/button-toggle/button-toggle-scene.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {MatIconModule} from '@angular/material/icon';
66
encapsulation: ViewEncapsulation.None,
77
selector: 'app-button-toggle-scene',
88
templateUrl: './button-toggle-scene.html',
9+
styleUrls: ['./button-toggle-scene.scss'],
910
standalone: true,
1011
imports: [MatButtonToggleModule, MatIconModule],
1112
})
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<div class="scene-card">
22
<mat-card appearance="outlined">
3-
<mat-card-title class="docs-scene-card-title">
4-
</mat-card-title>
3+
<mat-card-header>
4+
<div class="docs-scene-card-title"></div>
5+
</mat-card-header>
56

6-
<mat-card-content class="scene-content">
7+
<mat-card-content>
8+
<div class="scene-content"></div>
79
</mat-card-content>
810
</mat-card>
911
</div>

scenes/src/app/scenes/card/card-scene.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
.scene-content {
66
background: rgba(red, 0.3);
7-
border-radius: 4px;
7+
border-radius: 12px;
88
height: 70px;
99
width: 100%;
10+
margin-top: 8px;
1011
}
1112

1213
.docs-scene-card-title {
1314
background: rgba(red, 0.5);
14-
border-radius: 4px;
15+
border-radius: 12px;
1516
height: 30px;
1617
width: 70%;
1718
}

scenes/src/app/scenes/checkbox/checkbox-scene.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<div class="scene-checkboxes">
2-
<mat-checkbox class="scene-checkbox-all" [indeterminate]="true">All</mat-checkbox>
2+
<div>
3+
<mat-checkbox class="scene-checkbox-all" [indeterminate]="true">All</mat-checkbox>
4+
</div>
35
<mat-checkbox [checked]="true">Draft</mat-checkbox>
46
<mat-checkbox [checked]="true">In Progress</mat-checkbox>
57
<mat-checkbox>Submitted</mat-checkbox>
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
.scene-checkboxes {
2-
width: 80px;
2+
width: 120px;
33
}
44

55
.scene-checkbox-all {
66
margin-left: -20px;
77
}
8-
9-
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
10-
.mat-checkbox-layout {
11-
padding: 5px 0;
12-
}
13-
14-
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
15-
.mat-checkbox-label {
16-
font-size: 20px;
17-
}

0 commit comments

Comments
 (0)