Skip to content

Commit 66a3fa6

Browse files
committed
build: remove remaining legacy references in e2e
Removes the remaining usages of legacy components in the e2e app. Also adds a click handler so the navigation closes when a link is clicked.
1 parent bccbddd commit 66a3fa6

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

src/e2e-app/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ ng_module(
5050
"//src/material/grid-list",
5151
"//src/material/icon",
5252
"//src/material/input",
53-
"//src/material/legacy-form-field",
54-
"//src/material/legacy-list",
5553
"//src/material/menu",
5654
"//src/material/progress-bar",
5755
"//src/material/progress-spinner",

src/e2e-app/e2e-app/e2e-app-layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<button (click)="showLinks = !showLinks">Toggle Navigation Links</button>
22

33
<main>
4-
<mat-nav-list *ngIf="showLinks">
4+
<mat-nav-list *ngIf="showLinks" (click)="showLinks = false">
55
<a mat-list-item *ngFor="let link of navLinks" [routerLink]="[link.path]">{{link.title}}</a>
66
</mat-nav-list>
77

src/e2e-app/e2e-app/e2e-app-layout.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ export class E2eAppLayout {
1212
showLinks = false;
1313

1414
navLinks = [
15-
{path: 'block-scroll-strategy', title: 'Block scroll strategy'},
15+
{path: 'block-scroll-strategy', title: 'Block Scroll Strategy'},
1616
{path: 'button', title: 'Button'},
1717
{path: 'button-toggle', title: 'Button Toggle'},
1818
{path: 'checkbox', title: 'Checkbox'},
1919
{path: 'component-harness', title: 'Component Harness'},
2020
{path: 'dialog', title: 'Dialog'},
2121
{path: 'expansion', title: 'Expansion'},
22-
{path: 'grid-list', title: 'Grid list'},
22+
{path: 'grid-list', title: 'Grid List'},
2323
{path: 'icon', title: 'Icon'},
2424
{path: 'input', title: 'Input'},
2525
{path: 'list', title: 'List'},
2626
{path: 'menu', title: 'Menu'},
27-
{path: 'progress-bar', title: 'Progress bar'},
27+
{path: 'progress-bar', title: 'Progress Bar'},
2828
{path: 'progress-spinner', title: 'Progress Spinner'},
2929
{path: 'radio', title: 'Radio'},
3030
{path: 'select', title: 'Select'},

src/e2e-app/e2e-app/e2e-app-module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
import {CommonModule} from '@angular/common';
1010
import {NgModule} from '@angular/core';
11-
import {MatLegacyListModule} from '@angular/material/legacy-list';
11+
import {MatListModule} from '@angular/material/list';
1212
import {RouterModule} from '@angular/router';
1313
import {E2eAppLayout, Home} from './e2e-app-layout';
1414

1515
@NgModule({
16-
imports: [CommonModule, MatLegacyListModule, RouterModule],
16+
imports: [CommonModule, MatListModule, RouterModule],
1717
declarations: [E2eAppLayout, Home],
1818
exports: [E2eAppLayout],
1919
})

src/e2e-app/theme.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ $candy-app-theme: mat.define-light-theme((
1818

1919
// Include the default theme styles.
2020
@include mat.all-component-themes($candy-app-theme);
21-
@include mat.all-legacy-component-themes($candy-app-theme);

0 commit comments

Comments
 (0)