diff --git a/CHANGELOG.md b/CHANGELOG.md index 60928cc9..29ae40b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ With the new [mod_firewall](https://livingston.frama.io/peertube-plugin-livechat ### Minor changes and fixes +* #118: improved accessibility. * Avatar set for anonymous users: new 'none' choice (that will fallback to Converse new colorized avatars). * New translation: Albanian. * Translation updates: Crotian, Japanese, traditional Chinese. diff --git a/conversejs/build-conversejs.sh b/conversejs/build-conversejs.sh index a2838543..6e5874b3 100644 --- a/conversejs/build-conversejs.sh +++ b/conversejs/build-conversejs.sh @@ -32,6 +32,8 @@ CONVERSE_VERSION="livechat_converse_11" CONVERSE_COMMIT="1625f9b6ee81fa9ebd8df5cba306bde478f1943b" # 2024-08-06: including new getOccupantActionButtons hook (waiting for merge in Converse upstream) CONVERSE_COMMIT="5b35bd31c7e26c1f5396cd65eef69293d8b388c1" +# 2024-08-20: accessibility fixes +CONVERSE_COMMIT="7b00a2e0b4a13cea7800f4f100c2673785f94486" rootdir="$(pwd)" src_dir="$rootdir/conversejs" diff --git a/conversejs/custom/plugins/notes/templates/muc-note.js b/conversejs/custom/plugins/notes/templates/muc-note.js index 3ef2a6d4..16815e20 100644 --- a/conversejs/custom/plugins/notes/templates/muc-note.js +++ b/conversejs/custom/plugins/notes/templates/muc-note.js @@ -41,12 +41,12 @@ export function tplMucNote (el, note) { ` } - - diff --git a/conversejs/custom/plugins/notes/templates/muc-notes.js b/conversejs/custom/plugins/notes/templates/muc-notes.js index 0d5e5a88..e488dea2 100644 --- a/conversejs/custom/plugins/notes/templates/muc-notes.js +++ b/conversejs/custom/plugins/notes/templates/muc-notes.js @@ -25,7 +25,7 @@ function tplFilters (el) { >` : '' } - { + { ev?.preventDefault() el.filterNotes({}) }} title="${__('Close')}"> @@ -85,7 +85,7 @@ function tplCreateButton (el) { const i18nCreateNote = __(LOC_moderator_note_create) return html` - + ` diff --git a/conversejs/custom/plugins/poll/templates/poll.js b/conversejs/custom/plugins/poll/templates/poll.js index b95b1368..152a0f32 100644 --- a/conversejs/custom/plugins/poll/templates/poll.js +++ b/conversejs/custom/plugins/poll/templates/poll.js @@ -83,21 +83,21 @@ export function tplPoll (el, currentPoll, canVote) { return html` ${currentPoll.over - ? html` + ? html` ` : '' } ${el.collapsed ? html` - + ` : html` - + ${el.collapsed ? html` - + ` : html` - + ${tasklist.get('name')} - + - - diff --git a/conversejs/custom/plugins/tasks/templates/muc-task.js b/conversejs/custom/plugins/tasks/templates/muc-task.js index bbd2fcad..e003341a 100644 --- a/conversejs/custom/plugins/tasks/templates/muc-task.js +++ b/conversejs/custom/plugins/tasks/templates/muc-task.js @@ -30,12 +30,12 @@ export function tplMucTask (el, task) { ${task.get('description') ?? ''} - - diff --git a/conversejs/custom/shared/components/muc-app/templates/muc-app.js b/conversejs/custom/shared/components/muc-app/templates/muc-app.js index 9db12559..85413da9 100644 --- a/conversejs/custom/shared/components/muc-app/templates/muc-app.js +++ b/conversejs/custom/shared/components/muc-app/templates/muc-app.js @@ -14,7 +14,7 @@ export function tplMUCApp (el, i18nTitle, helpUrl, i18nHelp, content) { size="1em" title="${i18nHelp}" > - + diff --git a/conversejs/custom/templates/livechat-external-login-modal.js b/conversejs/custom/templates/livechat-external-login-modal.js index 52e33027..0bba91de 100644 --- a/conversejs/custom/templates/livechat-external-login-modal.js +++ b/conversejs/custom/templates/livechat-external-login-modal.js @@ -117,7 +117,7 @@ export const tplExternalLoginModal = (el, o) => { ${ externalButtons.map(button => html` - { @@ -187,7 +187,9 @@ export const tplExternalLoginModal = (el, o) => { // eslint-disable-next-line no-undef __(LOC_login_remote_peertube_video_not_found_try_anyway) } - el.openUrlTargetTop(o.remote_peertube_try_anyway_url)}>${ + el.openUrlTargetTop(o.remote_peertube_try_anyway_url)} + >${ // eslint-disable-next-line no-undef __(LOC_login_remote_peertube_video_not_found_try_anyway_button) } diff --git a/conversejs/custom/templates/muc-bottom-panel.js b/conversejs/custom/templates/muc-bottom-panel.js index 2f95bb13..91b12bb4 100644 --- a/conversejs/custom/templates/muc-bottom-panel.js +++ b/conversejs/custom/templates/muc-bottom-panel.js @@ -117,7 +117,7 @@ const tplViewerMode = (o) => { : html` - { + { ev.preventDefault() api.modal.show('converse-livechat-external-login') }}>${i18nExternalLogin} diff --git a/conversejs/lib/plugins/livechat-specific/toolbar.ts b/conversejs/lib/plugins/livechat-specific/toolbar.ts index 5da6b3dc..32c4ce6f 100644 --- a/conversejs/lib/plugins/livechat-specific/toolbar.ts +++ b/conversejs/lib/plugins/livechat-specific/toolbar.ts @@ -43,7 +43,7 @@ function getToolbarButtons (this: any, toolbarEl: any, buttons: any[]): any { size="1em"> ` buttons.push(html` - { ev?.preventDefault()
${currentPoll.over - ? html` + ? html` ` : '' } ${el.collapsed ? html` - + ` : html` - + ${el.collapsed ? html` - + ` : html` - + ${tasklist.get('name')}