From e5378e9c50371365838a656eea437a0dec70cecd Mon Sep 17 00:00:00 2001 From: Pavel Kovirshin <45898580+PahaN47@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:53:34 +0300 Subject: [PATCH] fix: eslint a11y rules (#1079) * fix: eslint a11y rules * fix: tests --- .../QuestionBlockItem/QuestionBlockItem.scss | 4 +++ .../QuestionBlockItem/QuestionBlockItem.tsx | 8 ++--- src/components/ImageBase/ImageBase.tsx | 7 ++--- src/components/OutsideClick/OutsideClick.tsx | 18 +++++++---- src/components/ReactPlayer/ReactPlayer.tsx | 21 +++++++++---- src/components/Title/TitleItem.scss | 1 + src/components/Title/TitleItem.tsx | 8 ++--- src/components/VideoBlock/VideoBlock.tsx | 22 +++++++++----- src/editor/components/AddBlock/AddBlock.scss | 2 ++ src/editor/components/AddBlock/AddBlock.tsx | 8 ++--- .../components/EditBlock/EditBlock.scss | 1 + src/editor/components/EditBlock/EditBlock.tsx | 30 +++++++++++++------ .../CustomComponent/CustomComponent.tsx | 17 +++++++---- 13 files changed, 93 insertions(+), 54 deletions(-) diff --git a/src/blocks/Questions/QuestionBlockItem/QuestionBlockItem.scss b/src/blocks/Questions/QuestionBlockItem/QuestionBlockItem.scss index b2aebc83c..b04158efa 100644 --- a/src/blocks/Questions/QuestionBlockItem/QuestionBlockItem.scss +++ b/src/blocks/Questions/QuestionBlockItem/QuestionBlockItem.scss @@ -12,11 +12,15 @@ $block: '.#{$ns}QuestionsBlockItem'; } &__title { + @include reset-button-style(); @include heading4(); @include focusable(); position: relative; + display: block; + width: 100%; padding-right: 24px; + text-align: start; cursor: pointer; border-radius: var(--g-focus-border-radius); diff --git a/src/blocks/Questions/QuestionBlockItem/QuestionBlockItem.tsx b/src/blocks/Questions/QuestionBlockItem/QuestionBlockItem.tsx index 94154b282..24f92cdad 100644 --- a/src/blocks/Questions/QuestionBlockItem/QuestionBlockItem.tsx +++ b/src/blocks/Questions/QuestionBlockItem/QuestionBlockItem.tsx @@ -30,14 +30,10 @@ export const QuestionBlockItem = ({ itemType={FaqMicrodataValues.QuestionType} role={'listitem'} > -