Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cdk/dialog/dialog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ describe('Dialog', () => {
flushMicrotasks();

let firstHeader = overlayContainerElement.querySelector(
'h1[tabindex="-1"]',
'h2[tabindex="-1"]',
) as HTMLInputElement;

expect(document.activeElement)
Expand Down Expand Up @@ -1270,7 +1270,7 @@ class PizzaMsg {

@Component({
template: `
<h1>This is the title</h1>
<h2>This is the title</h2>
`,
standalone: true,
imports: [DialogModule],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 mat-dialog-title>Delete file</h1>
<h2 mat-dialog-title>Delete file</h2>
<mat-dialog-content>
Would you like to delete cat.jpeg?
</mat-dialog-content>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 mat-dialog-title>Favorite Animal</h1>
<h2 mat-dialog-title>Favorite Animal</h2>
<mat-dialog-content>
My favorite animal is:
<ul>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 mat-dialog-title>Dialog with elements</h1>
<h2 mat-dialog-title>Dialog with elements</h2>
<mat-dialog-content>This dialog showcases the title, close, content and actions elements.</mat-dialog-content>
<mat-dialog-actions>
<button mat-button mat-dialog-close>Close</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 mat-dialog-title>Hi {{data.name}}</h1>
<h2 mat-dialog-title>Hi {{data.name}}</h2>
<mat-dialog-content>
<p>What's your favorite animal?</p>
<mat-form-field>
Expand Down
2 changes: 1 addition & 1 deletion src/dev-app/slider/slider-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class SliderDemo {
selector: 'slider-dialog-demo',
styleUrls: ['slider-demo.css'],
template: `
<h1 mat-dialog-title>Slider in a dialog</h1>
<h2 mat-dialog-title>Slider in a dialog</h2>
<mat-dialog-content class="demo-dialog-content">
<mat-slider [discrete]="this.data.discrete" [showTickMarks]="this.data.showTickMarks" [color]="this.data.color" step="10">
<input value="50" matSliderThumb>
Expand Down
16 changes: 8 additions & 8 deletions src/material/dialog/dialog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ describe('MDC-based MatDialog', () => {
flushMicrotasks();

let firstHeader = overlayContainerElement.querySelector(
'h1[tabindex="-1"]',
'h2[tabindex="-1"]',
) as HTMLInputElement;

expect(document.activeElement)
Expand Down Expand Up @@ -1625,7 +1625,7 @@ describe('MDC-based MatDialog', () => {
@Component({
standalone: true,
imports: [MatDialogTitle],
template: `@if (showTitle()) { <h1 mat-dialog-title>This is the first title</h1> }`,
template: `@if (showTitle()) { <h2 mat-dialog-title>This is the first title</h2> }`,
})
class DialogCmp {
showTitle = signal(true);
Expand Down Expand Up @@ -2240,13 +2240,13 @@ class PizzaMsg {
@Component({
template: `
@if (shouldShowTitle('first')) {
<h1 mat-dialog-title>This is the first title</h1>
<h2 mat-dialog-title>This is the first title</h2>
}
@if (shouldShowTitle('second')) {
<h1 mat-dialog-title>This is the second title</h1>
<h2 mat-dialog-title>This is the second title</h2>
}
@if (shouldShowTitle('third')) {
<h1 mat-dialog-title>This is the third title</h1>
<h2 mat-dialog-title>This is the third title</h2>
}
<mat-dialog-content>Lorem ipsum dolor sit amet.</mat-dialog-content>
<mat-dialog-actions align="end">
Expand Down Expand Up @@ -2275,13 +2275,13 @@ class ContentElementDialog {
template: `
<ng-template>
@if (shouldShowTitle('first')) {
<h1 mat-dialog-title>This is the first title</h1>
<h2 mat-dialog-title>This is the first title</h2>
}
@if (shouldShowTitle('second')) {
<h1 mat-dialog-title>This is the second title</h1>
<h2 mat-dialog-title>This is the second title</h2>
}
@if (shouldShowTitle('third')) {
<h1 mat-dialog-title>This is the third title</h1>
<h2 mat-dialog-title>This is the third title</h2>
}
<mat-dialog-content>Lorem ipsum dolor sit amet.</mat-dialog-content>
<mat-dialog-actions align="end">
Expand Down