Skip to content

Commit

Permalink
Merge pull request #179 from savindi7/chore-add-text-transform-style
Browse files Browse the repository at this point in the history
chore(react): update text style of Avatar in Header
  • Loading branch information
savindi7 authored Oct 27, 2023
2 parents a00f845 + 3f716c6 commit 580f361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const Header: FC<HeaderProps> & WithWrapperProps = (props: HeaderProps): ReactEl
endIcon: <ChevronDownIcon />,
startIcon: (
<Avatar className="image" alt="User Image" src={user?.image}>
{user?.name?.split('')[0].toLocaleUpperCase()}
{user?.name?.split('')[0]}
</Avatar>
),
...userDropdownMenuProps.triggerOptions,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/Header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
.image {
width: 2.2rem;
height: 2.2rem;
text-transform: capitalize;
}
}

Expand Down

0 comments on commit 580f361

Please sign in to comment.