Skip to content

Commit 6edfbb1

Browse files
JustinXinLiunmetulev
authored andcommitted
Fixed person comp alignment issue. (#207)
1 parent 8a12a54 commit 6edfbb1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/mgt-person/mgt-person.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ $email-color: var(--email-color, #{$ms-color-neutralPrimary});
2727
display: inline-block;
2828
color: $color;
2929
position: relative;
30+
vertical-align: top;
3031
}
3132

3233
:host svg,
@@ -65,11 +66,11 @@ mgt-person .Details {
6566
mgt-person .user-avatar {
6667
width: $avatar-size;
6768
height: $avatar-size;
69+
display: flex;
70+
justify-content: center;
71+
align-items: center;
6872

6973
&.initials {
70-
display: flex;
71-
justify-content: center;
72-
align-items: center;
7374
color: $initials-color;
7475
background-color: $initials-background-color;
7576
border-radius: 50%;

src/components/mgt-person/mgt-person.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ export class MgtPerson extends MgtTemplatedComponent {
416416
const initials = this.getInitials();
417417

418418
imageHtml = html`
419-
<img />
420419
<span class="initials-text" aria-label="${initials}">
421420
${initials}
422421
</span>

0 commit comments

Comments
 (0)