Enable some oxlint a11y rules & improve keyboard accessibility (#34291)
* Conform to oxlint rule jsx-a11y/role-has-required-aria-props * Conform to oxlint rule jsx-a11y/role-supports-aria-props * Conform to oxlint rule jsx-a11y/interactive-supports-focus * Conform to oxlint rule jsx-a11y/click-events-have-key-events * Update snapshots
This commit is contained in:
+1
@@ -12,6 +12,7 @@ exports[`<BaseCard /> should close when clicking X button 1`] = `
|
||||
class="mx_BaseCard_header_title"
|
||||
>
|
||||
<p
|
||||
aria-level="1"
|
||||
class="_typography_6v6n8_153 _font-body-md-medium_6v6n8_60 mx_BaseCard_header_title_heading"
|
||||
role="heading"
|
||||
>
|
||||
|
||||
+2
@@ -12,6 +12,7 @@ exports[`<ExtensionsCard /> should render empty state 1`] = `
|
||||
class="mx_BaseCard_header_title"
|
||||
>
|
||||
<p
|
||||
aria-level="1"
|
||||
class="_typography_6v6n8_153 _font-body-md-medium_6v6n8_60 mx_BaseCard_header_title_heading"
|
||||
role="heading"
|
||||
>
|
||||
@@ -113,6 +114,7 @@ exports[`<ExtensionsCard /> should render widgets 1`] = `
|
||||
class="mx_BaseCard_header_title"
|
||||
>
|
||||
<p
|
||||
aria-level="1"
|
||||
class="_typography_6v6n8_153 _font-body-md-medium_6v6n8_60 mx_BaseCard_header_title_heading"
|
||||
role="heading"
|
||||
>
|
||||
|
||||
+3
@@ -12,6 +12,7 @@ exports[`<PinnedMessagesCard /> should show the empty state when there are no pi
|
||||
class="mx_BaseCard_header_title"
|
||||
>
|
||||
<p
|
||||
aria-level="1"
|
||||
class="_typography_6v6n8_153 _font-body-md-medium_6v6n8_60 mx_BaseCard_header_title_heading"
|
||||
role="heading"
|
||||
>
|
||||
@@ -94,6 +95,7 @@ exports[`<PinnedMessagesCard /> should show two pinned messages 1`] = `
|
||||
class="mx_BaseCard_header_title"
|
||||
>
|
||||
<p
|
||||
aria-level="1"
|
||||
class="_typography_6v6n8_153 _font-body-md-medium_6v6n8_60 mx_BaseCard_header_title_heading"
|
||||
role="heading"
|
||||
>
|
||||
@@ -322,6 +324,7 @@ exports[`<PinnedMessagesCard /> unpin all should not allow to unpinall 1`] = `
|
||||
class="mx_BaseCard_header_title"
|
||||
>
|
||||
<p
|
||||
aria-level="1"
|
||||
class="_typography_6v6n8_153 _font-body-md-medium_6v6n8_60 mx_BaseCard_header_title_heading"
|
||||
role="heading"
|
||||
>
|
||||
|
||||
+2
@@ -12,6 +12,7 @@ exports[`<UserInfo /> with crypto enabled renders <BasicUserInfo /> 1`] = `
|
||||
class="mx_BaseCard_header_title"
|
||||
>
|
||||
<p
|
||||
aria-level="1"
|
||||
class="_typography_6v6n8_153 _font-body-md-medium_6v6n8_60 mx_BaseCard_header_title_heading"
|
||||
role="heading"
|
||||
>
|
||||
@@ -314,6 +315,7 @@ exports[`<UserInfo /> with crypto enabled should render a deactivate button for
|
||||
class="mx_BaseCard_header_title"
|
||||
>
|
||||
<p
|
||||
aria-level="1"
|
||||
class="_typography_6v6n8_153 _font-body-md-medium_6v6n8_60 mx_BaseCard_header_title_heading"
|
||||
role="heading"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user