Add level to dialog titles and form component titles (#8233)

* Add level to dialog titles and form component titles

* Switch to h1

* h2 instead of role and aria-level
This commit is contained in:
Charles Gagnon
2019-11-07 09:32:02 -08:00
committed by GitHub
parent d635390b33
commit efebd681b6
3 changed files with 12 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ export interface DialogComponentParams extends IBootstrapParams {
template: `
<div class="dialogContainer" *ngIf="_dialogPane && _dialogPane.displayPageTitle">
<div class="dialogModal-wizardHeader" *ngIf="_dialogPane && _dialogPane.displayPageTitle">
<div *ngIf="_dialogPane.pageNumber" class="wizardPageNumber">Step {{_dialogPane.pageNumber}}</div>
<h1 *ngIf="_dialogPane.pageNumber" class="wizardPageNumber">Step {{_dialogPane.pageNumber}}</h1>
<h1 class="wizardPageTitle" role="alert">{{_dialogPane.title}}</h1>
<div *ngIf="_dialogPane.description">{{_dialogPane.description}}</div>
</div>

View File

@@ -71,6 +71,13 @@
font-weight: bold;
}
.dialogContainer .dialogModal-wizardHeader h1.wizardPageNumber {
margin-block-start: 0px;
margin-block-end: 0px;
font-weight: normal;
font-size: 11px;
}
.dialogContainer {
display: flex;
flex-direction: column;