From 26e1570dd6b038b81e7fa9d62ff8d8d942fcf611 Mon Sep 17 00:00:00 2001 From: Kerry Date: Mon, 24 Jan 2022 15:07:54 +0100 Subject: [PATCH] a11y - fix iframes without title (#7614) * iframe title in AppTile Signed-off-by: Kerry Archibald * iframe title in hostSignupDialog Signed-off-by: Kerry Archibald * iframe title in MFileBody * iframe titles in modal widget and int man Signed-off-by: Kerry Archibald * enable jsx-a11y/iframe-has-title rule Signed-off-by: Kerry Archibald --- .eslintrc.js | 1 - src/components/views/dialogs/HostSignupDialog.tsx | 6 ++++++ src/components/views/dialogs/ModalWidgetDialog.tsx | 1 + src/components/views/elements/AppTile.tsx | 5 +++++ src/components/views/messages/MFileBody.tsx | 2 ++ src/components/views/settings/IntegrationManager.tsx | 2 +- src/i18n/strings/en_EN.json | 4 ++-- 7 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 37379f1304..2fb1cc943d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -45,7 +45,6 @@ module.exports = { "jsx-a11y/alt-text": "off", "jsx-a11y/aria-activedescendant-has-tabindex": "off", "jsx-a11y/click-events-have-key-events": "off", - "jsx-a11y/iframe-has-title": "off", "jsx-a11y/interactive-supports-focus": "off", "jsx-a11y/label-has-associated-control": "off", "jsx-a11y/media-has-caption": "off", diff --git a/src/components/views/dialogs/HostSignupDialog.tsx b/src/components/views/dialogs/HostSignupDialog.tsx index b749c7483b..0158640493 100644 --- a/src/components/views/dialogs/HostSignupDialog.tsx +++ b/src/components/views/dialogs/HostSignupDialog.tsx @@ -281,6 +281,12 @@ export default class HostSignupDialog extends React.PureComponent