Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 022588f

Browse files
authored
Silence some widgets for better screen reader presentation. (#7057)
1 parent d61a83a commit 022588f

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/components/views/avatars/BaseAvatar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ const BaseAvatar = (props: IProps) => {
150150
return (
151151
<AccessibleButton
152152
aria-label={_t("Avatar")}
153+
aria-live="off"
153154
{...otherProps}
154155
element="span"
155156
className={classNames("mx_BaseAvatar", className)}

src/components/views/rooms/EventTile.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,8 @@ export default class EventTile extends React.Component<IProps, IState> {
843843
if (remainder > 0) {
844844
remText = <span className="mx_EventTile_readAvatarRemainder"
845845
onClick={this.toggleAllReadAvatars}
846-
style={{ right: "calc(" + toRem(-left) + " + " + receiptOffset + "px)" }}>{ remainder }+
846+
style={{ right: "calc(" + toRem(-left) + " + " + receiptOffset + "px)" }}
847+
aria-live="off">{ remainder }+
847848
</span>;
848849
}
849850
}

src/components/views/rooms/ReadReceiptMarker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export default class ReadReceiptMarker extends React.PureComponent<IProps, IStat
206206
member={this.props.member}
207207
fallbackUserId={this.props.fallbackUserId}
208208
aria-hidden="true"
209+
aria-live="off"
209210
width={14}
210211
height={14}
211212
resizeMethod="crop"

src/components/views/rooms/WhoIsTypingTile.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export default class WhoIsTypingTile extends React.Component<IProps, IState> {
183183
height={24}
184184
resizeMethod="crop"
185185
viewUserOnClick={true}
186+
aria-live="off"
186187
/>
187188
);
188189
});

0 commit comments

Comments
 (0)