Enable jsx-a11y/click-events-have-key-events eslint rule (#10362)

* enable "jsx-a11y/alt-text" lint rule

* enable "jsx-a11y/label-has-associated-control"

* make Spoilers keyboard accessible

* make invite reason keyboard accessible

* make invite suggestions keyboard accessible

* make avatar upload in space basic settings keyboard accessible

* ignore jsx-a11y/click-events-have-key-events issues in tests

* Update test expectation

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Kerry
2023-08-09 18:27:31 +12:00
committed by GitHub
parent fe907ed66a
commit e0d498e338
9 changed files with 28 additions and 10 deletions

View File

@@ -809,6 +809,16 @@ $left-gutter: 64px;
.mx_EventTile_spoiler {
cursor: pointer;
// clear button styles
appearance: none;
background: none;
border: none;
padding: 0;
margin: 0;
font-size: inherit;
font-family: inherit;
line-height: inherit;
.mx_EventTile_spoiler_reason {
color: $event-timestamp-color;
font-size: $font-11px;
@@ -821,6 +831,7 @@ $left-gutter: 64px;
&.visible > .mx_EventTile_spoiler_content {
filter: none;
user-select: auto;
}
}