mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix reading toast content in screen readers
This commit is contained in:
parent
639feb2306
commit
3883444567
@ -1,11 +1,12 @@
|
|||||||
<h1>
|
<div class="d-flex">
|
||||||
<span class="text-nowrap me-2">
|
<h1 class="text-nowrap">
|
||||||
<my-global-icon iconName="follower" aria-hidden="true"></my-global-icon>
|
<my-global-icon iconName="follower" aria-hidden="true"></my-global-icon>
|
||||||
<ng-container i18n>My followers</ng-container>
|
<ng-container i18n>My followers</ng-container>
|
||||||
<span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary"> {{ pagination.totalItems }}</span>
|
|
||||||
</span>
|
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
<span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary"> {{ pagination.totalItems }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="followers-header">
|
<div class="followers-header">
|
||||||
<my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>
|
<my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>
|
||||||
</div>
|
</div>
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
<p-toast position="bottom-right">
|
<p-toast position="bottom-right">
|
||||||
<ng-template let-message pTemplate="message">
|
<ng-template let-message pTemplate="message">
|
||||||
<div class="notification-block">
|
<div class="notification-block">
|
||||||
<div class="message" [attr.role]="getNotificationRole(message)">
|
<div class="message">
|
||||||
<h3>{{ message.summary }}</h3>
|
<h3>{{ message.summary }}</h3>
|
||||||
<p>{{ message.detail }}</p>
|
<p>{{ message.detail }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -202,16 +202,6 @@ export class AppComponent implements OnInit, AfterViewInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getNotificationRole (message: { severity: 'success' | 'error' | 'info' }) {
|
|
||||||
switch (message.severity) {
|
|
||||||
case 'error':
|
|
||||||
return 'alert'
|
|
||||||
|
|
||||||
default:
|
|
||||||
return 'status'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
private initRouteEvents () {
|
private initRouteEvents () {
|
||||||
|
Loading…
Reference in New Issue
Block a user