Skip to content

Commit 1aa4a74

Browse files
committed
Ensures that warning messages are read
Adds aria-live attribute to certain elements that convey warning status. Removes outdated warning (2019) Fixes AB#525, AB#566
1 parent b09f444 commit 1aa4a74

8 files changed

Lines changed: 7 additions & 16 deletions

File tree

src/@batch-flask/ui/property-list/property-group/property-group.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h4 class="noselect">{{label}}</h4>
1010
<bl-button color="light" type="round" [action]="triggerEdit" *ngIf="edit" title="Edit"><i class="fa fa-pencil"></i></bl-button>
1111
</bl-clickable>
1212
<div class="group-content" *ngIf="!collapsed" [id]="contentId">
13-
<div class="warning-message" *ngIf="warningMessage">
13+
<div class="warning-message" *ngIf="warningMessage" aria-live="polite">
1414
<i class="fa fa-warning"></i>
1515
<span>{{warningMessage}}</span>
1616
</div>

src/app/components/account/details/programatic-usage/aad-credentials-picker/aad-credentials-picker.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h1>AAD Credentials</h1>
2323
<bl-property-group>
2424
<bl-text-property label="Tenant Id" [value]="tenantId"></bl-text-property>
2525
<bl-text-property label="Client Id" [value]="pickedApplication.id"></bl-text-property>
26-
<div class="danger">
26+
<div class="danger" aria-live="polite">
2727
<i class="fa fa-warning"></i>Save this key, you will not see it again after closing this dialog.
2828
</div>
2929
<bl-text-property label="Secret" [value]="pickedSecret.value"></bl-text-property>

src/app/components/account/details/programatic-usage/programatic-usage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1>
1717
<div>
1818
{{'programatic-usage.credentials' | i18n}}
1919
</div>
20-
<div *ngIf="pickedCredentialType === CredentialType.AAD && !aadCredentials" class="aad-needs-setup-creds"
20+
<div *ngIf="pickedCredentialType === CredentialType.AAD && !aadCredentials" class="aad-needs-setup-creds" aria-live="polite"
2121
matTooltip="Pick an application and generate a key to have the templates filled with the correct informations">
2222
<i class="fa fa-warning"></i>{{'programatic-usage.setup' | i18n}}
2323
</div>

src/app/components/account/details/programatic-usage/programing-sample/programing-sample.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="description">
2-
<div *ngIf="credentialType === CredentialType.AAD && !aadCredentials" class="aad-needs-setup-creds">
2+
<div *ngIf="credentialType === CredentialType.AAD && !aadCredentials" class="aad-needs-setup-creds" aria-live="polite">
33
<i class="fa fa-warning"></i>You haven't picked an Azure AD application yet. The sample below will not have all the information filled.
44
</div>
55
<bl-property-group label="" class="wide" class="prerequisites">

src/app/components/data/action/delete/delete-container-dialog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{ container.name}}
88
</li>
99
</ul>
10-
<div class="warning-message">
10+
<div class="warning-message" aria-live="polite">
1111
<i class="fa fa-warning"></i>&nbsp;
1212
<span>{{"delete-container-dialog.warning" | i18n}}</span>
1313
</div>

src/app/components/job/details/job-progress-status/job-progress-status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</div>
2222
</div>
2323
</div>
24-
<div class="warning-container">
24+
<div class="warning-container" aria-live="polite">
2525
<div class="unaccurate-data" *ngIf="taskCountTooHigh">
2626
<i class="fa fa-warning"></i>{{'job-progress-status.inaccurate' | i18n}}
2727
</div>

src/app/components/pool/details/pool-cost-card/pool-cost-card.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,4 @@
77
[attr.aria-label]="label">
88
</canvas>
99
</div>
10-
<div class="total">
11-
<i *ngIf="showPartialDataWarning" class="fa fa-warning" matTooltip="Cost tracking at the pool level is a recent change. Data will be missing before April 2019"></i>
12-
<bl-time-range-picker [formControl]="timeRange" [quickRanges]="quickRanges" [showLabel]="false"></bl-time-range-picker>
13-
14-
<i *ngIf="loading" class="fa fa-spiner fa-spin" title="Loading"></i>
15-
<span *ngIf="!loading">
16-
{{total}} {{currency}}
17-
</span>
18-
</div>
1910
</ng-container>

src/app/components/task/base/task-state/task-state.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<span [matTooltip]="errorMessage" matTooltipPosition="right">
1+
<span [matTooltip]="errorMessage" matTooltipPosition="right" aria-live="polite">
22
<i class="fa"
33
aria-hidden="true"
44
[class.fa-warning]="hasError"

0 commit comments

Comments
 (0)