mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Silence some widgets for better screen reader presentation. (#7057)
This commit is contained in:
parent
d61a83a7b9
commit
022588fe06
@ -150,6 +150,7 @@ const BaseAvatar = (props: IProps) => {
|
|||||||
return (
|
return (
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
aria-label={_t("Avatar")}
|
aria-label={_t("Avatar")}
|
||||||
|
aria-live="off"
|
||||||
{...otherProps}
|
{...otherProps}
|
||||||
element="span"
|
element="span"
|
||||||
className={classNames("mx_BaseAvatar", className)}
|
className={classNames("mx_BaseAvatar", className)}
|
||||||
|
@ -843,7 +843,8 @@ export default class EventTile extends React.Component<IProps, IState> {
|
|||||||
if (remainder > 0) {
|
if (remainder > 0) {
|
||||||
remText = <span className="mx_EventTile_readAvatarRemainder"
|
remText = <span className="mx_EventTile_readAvatarRemainder"
|
||||||
onClick={this.toggleAllReadAvatars}
|
onClick={this.toggleAllReadAvatars}
|
||||||
style={{ right: "calc(" + toRem(-left) + " + " + receiptOffset + "px)" }}>{ remainder }+
|
style={{ right: "calc(" + toRem(-left) + " + " + receiptOffset + "px)" }}
|
||||||
|
aria-live="off">{ remainder }+
|
||||||
</span>;
|
</span>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -206,6 +206,7 @@ export default class ReadReceiptMarker extends React.PureComponent<IProps, IStat
|
|||||||
member={this.props.member}
|
member={this.props.member}
|
||||||
fallbackUserId={this.props.fallbackUserId}
|
fallbackUserId={this.props.fallbackUserId}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
aria-live="off"
|
||||||
width={14}
|
width={14}
|
||||||
height={14}
|
height={14}
|
||||||
resizeMethod="crop"
|
resizeMethod="crop"
|
||||||
|
@ -183,6 +183,7 @@ export default class WhoIsTypingTile extends React.Component<IProps, IState> {
|
|||||||
height={24}
|
height={24}
|
||||||
resizeMethod="crop"
|
resizeMethod="crop"
|
||||||
viewUserOnClick={true}
|
viewUserOnClick={true}
|
||||||
|
aria-live="off"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user