File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -100,18 +100,17 @@ class IdentityUserAvatar extends React.Component<Props, State> {
100100 < div >
101101 { /* Button shape is ButtonShape.Square to make the height and width the same
102102 so we can use the border radius to make it a circle */ }
103- { this . getInitials ( ) && (
104- < Button
105- text = { this . getInitials ( ) }
106- shape = { ButtonShape . Square }
107- color = {
108- isPopoverOpen ? ComponentColor . Default : ComponentColor . Tertiary
109- }
110- onClick = { this . togglePopoverState }
111- className = { userAvatarButtonClassName }
112- testID = "global-header--user-avatar"
113- />
114- ) }
103+ < Button
104+ text = { this . getInitials ( ) }
105+ shape = { ButtonShape . Square }
106+ color = {
107+ isPopoverOpen ? ComponentColor . Default : ComponentColor . Tertiary
108+ }
109+ onClick = { this . togglePopoverState }
110+ className = { userAvatarButtonClassName }
111+ testID = "global-header--user-avatar"
112+ icon = { ! this . getInitials ( ) ? IconFont . User : null }
113+ />
115114 < FlexBox
116115 className = { userPopoverClassName }
117116 direction = { FlexDirection . Column }
Original file line number Diff line number Diff line change 1010 border : none ;
1111 background : linear-gradient (75.66deg , #0098f0 0% , $c-amethyst 79.64% );
1212 }
13+ .cf-button-icon {
14+ font-size : 18px ;
15+ }
1316}
1417
1518.user-popover {
You can’t perform that action at this time.
0 commit comments