Ensure tooltip contents is linked via aria to the target element (#10729)
* Ensure tooltip contents is linked via aria to the target element * Iterate * Fix tests * Fix tests * Update snapshot * Fix missing aria labels for more tooltips * Iterate * Update snapshots
This commit is contained in:
parent
8e962f6897
commit
99ac9e5029
22 changed files with 133 additions and 43 deletions
|
@ -1560,9 +1560,9 @@ export const UserInfoHeader: React.FC<{
|
|||
</div>
|
||||
);
|
||||
|
||||
let presenceState;
|
||||
let presenceLastActiveAgo;
|
||||
let presenceCurrentlyActive;
|
||||
let presenceState: string | undefined;
|
||||
let presenceLastActiveAgo: number | undefined;
|
||||
let presenceCurrentlyActive: boolean | undefined;
|
||||
if (member instanceof RoomMember && member.user) {
|
||||
presenceState = member.user.presence;
|
||||
presenceLastActiveAgo = member.user.lastActiveAgo;
|
||||
|
@ -1597,10 +1597,10 @@ export const UserInfoHeader: React.FC<{
|
|||
<div className="mx_UserInfo_profile">
|
||||
<div>
|
||||
<h2>
|
||||
{e2eIcon}
|
||||
<span title={displayName} aria-label={displayName} dir="auto">
|
||||
{displayName}
|
||||
</span>
|
||||
{e2eIcon}
|
||||
</h2>
|
||||
</div>
|
||||
<div className="mx_UserInfo_profile_mxid">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue