Skip to content

Commit

Permalink
Add the optional title to text template with no image
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Musale <[email protected]>
  • Loading branch information
musale committed Jul 25, 2023
1 parent ec440f3 commit 1838eef
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +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)}"
role="${ifDefined(this.view === ViewType.image ? undefined : 'presentation')}"
class="${textClasses}"
>
Expand Down

0 comments on commit 1838eef

Please sign in to comment.