mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-17 16:37:43 +00:00
fix(accessibility): add ARIA roles, live regions, and alt attributes to banner component (#8888)
Co-authored-by: SalmaAbdelrhmanMostafaMahmoud <salmaabdelrhmanmostafamahmoud@my.uopeople.com>
This commit is contained in:
parent
c437dfc35a
commit
c760b35dca
1 changed files with 10 additions and 2 deletions
|
|
@ -2,6 +2,8 @@
|
|||
<div
|
||||
[@banner]
|
||||
class="content-wrapper"
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
>
|
||||
@if (banner.progress$ && (banner.progress$ | async); as progress) {
|
||||
@if (progress > 0) {
|
||||
|
|
@ -14,7 +16,10 @@
|
|||
<div class="inner-content-wrapper">
|
||||
@if (banner.img) {
|
||||
<div class="motivational-img-wrapper">
|
||||
<img [src]="banner.img" />
|
||||
<img
|
||||
[src]="banner.img"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
<div class="message-wrapper">
|
||||
|
|
@ -27,7 +32,10 @@
|
|||
<!-- -->
|
||||
@if (banner.timer$) {
|
||||
<div class="message">
|
||||
<strong>{{ banner.timer$ | async | msToMinuteClockString }}</strong> –
|
||||
<strong aria-hidden="true">{{
|
||||
banner.timer$ | async | msToMinuteClockString
|
||||
}}</strong>
|
||||
–
|
||||
{{ banner.msg | translate: banner.translateParams }}
|
||||
</div>
|
||||
} @else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue