From cee42b4bcc6d1290e37216bb21afe4e9fcbdcfb3 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 20 Aug 2024 15:30:45 +0200 Subject: [PATCH] Improved accessibility (#118): * adding role="button" or type="button" where missing. --- CHANGELOG.md | 1 + conversejs/build-conversejs.sh | 2 ++ conversejs/custom/plugins/notes/templates/muc-note.js | 4 ++-- conversejs/custom/plugins/notes/templates/muc-notes.js | 4 ++-- conversejs/custom/plugins/poll/templates/poll.js | 6 +++--- .../custom/plugins/tasks/templates/muc-task-list.js | 10 +++++----- conversejs/custom/plugins/tasks/templates/muc-task.js | 4 ++-- .../shared/components/muc-app/templates/muc-app.js | 2 +- .../custom/templates/livechat-external-login-modal.js | 6 ++++-- conversejs/custom/templates/muc-bottom-panel.js | 2 +- conversejs/lib/plugins/livechat-specific/toolbar.ts | 2 +- 11 files changed, 24 insertions(+), 19 deletions(-) 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/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`` : '' } ${el.collapsed ? html` - ` : html` - ` : html` -

- - - - 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` - 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`