Skip to content

Commit

Permalink
[MA-27]: Remove tabIndex from non-interactive elements
Browse files Browse the repository at this point in the history
  • Loading branch information
SaurabhSharma-884 committed Dec 16, 2024
1 parent d316df6 commit 281be0e
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion webapp/channels/src/components/post/post_component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<p>
post message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ exports[`components/post_view/PostAttachment should match snapshot 1`] = `
dir="auto"
id="postMessageText_post_id"
onClick={[Function]}
tabIndex={0}
>
<Connect(PostMarkdown)
imageProps={
Expand Down Expand Up @@ -47,7 +46,6 @@ exports[`components/post_view/PostAttachment should match snapshot, on Show Less
dir="auto"
id="postMessageText_post_id"
onClick={[Function]}
tabIndex={0}
>
<Connect(PostMarkdown)
imageProps={
Expand Down Expand Up @@ -84,7 +82,6 @@ exports[`components/post_view/PostAttachment should match snapshot, on Show More
dir="auto"
id="postMessageText_post_id"
onClick={[Function]}
tabIndex={0}
>
<Connect(PostMarkdown)
imageProps={
Expand Down Expand Up @@ -139,7 +136,6 @@ exports[`components/post_view/PostAttachment should match snapshot, on edited po
dir="auto"
id="postMessageText_post_id"
onClick={[Function]}
tabIndex={0}
>
<Connect(PostMarkdown)
imageProps={
Expand Down Expand Up @@ -177,7 +173,6 @@ exports[`components/post_view/PostAttachment should match snapshot, on ephemeral
dir="auto"
id="postMessageText_post_id"
onClick={[Function]}
tabIndex={0}
>
<Connect(PostMarkdown)
imageProps={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ export default class PostMessageView extends React.PureComponent<Props, State> {
maxHeight={maxHeight}
>
<div
tabIndex={0}
id={id}
className='post-message__text'
dir='auto'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ exports[`plugins/PostMessageView should match snapshot with no extended post typ
dir="auto"
id="postMessageText_post_id"
onClick={[Function]}
tabIndex={0}
>
<Connect(PostMarkdown)
imageProps={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports[`GenericModal should match snapshot for base case 1`] = `
aria-hidden="true"
/>
<div
role="dialog"
role="none"
>
<div
class="fade modal-backdrop in"
Expand Down

0 comments on commit 281be0e

Please sign in to comment.