Skip to content

Commit

Permalink
Set title for icons only if the icon is an image rep
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Musale <[email protected]>
  • Loading branch information
musale committed Jul 26, 2023
1 parent f185eac commit 6fcc2fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ export class MgtPerson extends MgtTemplatedComponent {
// this reduces the redundant announcement of the user's name.
const textTemplate = html`
<span
title="${ifDefined(imageOnly ? titleText : undefined)}"
title="${ifDefined(this.view === ViewType.image ? titleText : undefined)}"
role="${ifDefined(this.view === ViewType.image ? undefined : 'presentation')}"
class="${textClasses}"
>
Expand Down

0 comments on commit 6fcc2fc

Please sign in to comment.