[MM-61599]: Remove tabIndex from non-interactive elements (#29659)

Этот коммит содержится в:
Saurabh Sharma
2025-01-31 21:54:56 +05:30
коммит произвёл GitHub
родитель 7740eb9d43
Коммит 7a959038f9
11 изменённых файлов: 26 добавлений и 54 удалений

Просмотреть файл

@@ -526,7 +526,6 @@ function PostComponent(props: Props) {
ref={postRef}
id={getTestId()}
data-testid={postAriaLabelDivTestId}
tabIndex={0}
post={post}
className={getClassName()}
onClick={handlePostClick}

Просмотреть файл

@@ -300,7 +300,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

Просмотреть файл

@@ -131,7 +131,6 @@ exports[`components/post_edit_history/edited_post_item should match snapshot whe
class="post-message__text"
dir="auto"
id="rhsPostMessageText_post_id"
tabindex="0"
>
<p>
post message

Просмотреть файл

@@ -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={
@@ -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={
@@ -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={
@@ -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={
@@ -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={

Просмотреть файл

@@ -150,7 +150,6 @@ export default class PostMessageView extends React.PureComponent<Props, State> {
maxHeight={maxHeight}
>
<div
tabIndex={0}
id={id}
className='post-message__text'
dir='auto'

Просмотреть файл

@@ -113,7 +113,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={