Moderation delay: fix accessibility on the timer shown to moderators.

This commit is contained in:
John Livingston 2024-07-11 15:42:12 +02:00
parent 31646beac3
commit cc51bb2c70
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## ??? (Not Released Yet)
### Minor changes and fixes
* Moderation delay: fix accessibility on the timer shown to moderators.
## 10.3.0 ## 10.3.0
### New features ### New features

View File

@ -42,7 +42,7 @@ export const moderationDelayPlugin = {
// Ok... We will add some info about how many remains... // Ok... We will add some info about how many remains...
r.pretty_time = window.converse.env.html` r.pretty_time = window.converse.env.html`
${r.pretty_time}&nbsp;-&nbsp;${Math.round(remains)} ${r.pretty_time}<span aria-hidden="true">&nbsp;-&nbsp;${Math.round(remains)}</span>
` `
// and we must update in 1 second... // and we must update in 1 second...
setTimeout(() => this.requestUpdate(), 1000) setTimeout(() => this.requestUpdate(), 1000)