From 281be0e80d33ec8f2d626f8bc1ea91c036d6c7c1 Mon Sep 17 00:00:00 2001 From: SaurabhSharma-884 Date: Mon, 16 Dec 2024 17:57:37 +0530 Subject: [PATCH] [MA-27]: Remove tabIndex from non-interactive elements --- webapp/channels/src/components/post/post_component.tsx | 1 - .../__snapshots__/post_edit_history.test.tsx.snap | 1 - .../__snapshots__/post_message_view.test.tsx.snap | 5 ----- .../post_view/post_message_view/post_message_view.tsx | 1 - .../src/plugins/test/__snapshots__/post_type.test.tsx.snap | 1 - .../generic_modal/__snapshots__/generic_modal.test.tsx.snap | 2 +- 6 files changed, 1 insertion(+), 10 deletions(-) diff --git a/webapp/channels/src/components/post/post_component.tsx b/webapp/channels/src/components/post/post_component.tsx index 3c037451eb02..ad7785b73eaf 100644 --- a/webapp/channels/src/components/post/post_component.tsx +++ b/webapp/channels/src/components/post/post_component.tsx @@ -521,7 +521,6 @@ const PostComponent = (props: Props): JSX.Element => { ref={postRef} id={getTestId()} data-testid={postAriaLabelDivTestId} - tabIndex={0} post={post} className={getClassName()} onClick={handlePostClick} diff --git a/webapp/channels/src/components/post_edit_history/__snapshots__/post_edit_history.test.tsx.snap b/webapp/channels/src/components/post_edit_history/__snapshots__/post_edit_history.test.tsx.snap index ee3cebfb7ced..71debed9af2a 100644 --- a/webapp/channels/src/components/post_edit_history/__snapshots__/post_edit_history.test.tsx.snap +++ b/webapp/channels/src/components/post_edit_history/__snapshots__/post_edit_history.test.tsx.snap @@ -255,7 +255,6 @@ exports[`components/post_edit_history should match snapshot 1`] = ` class="post-message__text" dir="auto" id="rhsPostMessageText_post_id" - tabindex="0" >

post message diff --git a/webapp/channels/src/components/post_view/post_message_view/__snapshots__/post_message_view.test.tsx.snap b/webapp/channels/src/components/post_view/post_message_view/__snapshots__/post_message_view.test.tsx.snap index 5963c0e57651..bb9b00a13a2a 100644 --- a/webapp/channels/src/components/post_view/post_message_view/__snapshots__/post_message_view.test.tsx.snap +++ b/webapp/channels/src/components/post_view/post_message_view/__snapshots__/post_message_view.test.tsx.snap @@ -10,7 +10,6 @@ exports[`components/post_view/PostAttachment should match snapshot 1`] = ` dir="auto" id="postMessageText_post_id" onClick={[Function]} - tabIndex={0} > { maxHeight={maxHeight} >