Skip to content

Commit

Permalink
fix(react): fix style inconsistency in Header component - address rev…
Browse files Browse the repository at this point in the history
…iew comments
  • Loading branch information
JayaShakthi97 committed Feb 7, 2025
1 parent f81c938 commit cb18225
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 6 additions & 1 deletion packages/react/src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ const Avatar: OverridableComponent<AvatarTypeMap<AvatarProps>> = forwardRef(
return (
<MuiAvatar
ref={ref}
className={clsx('oxygen-avatar', 'OxygenAvatar-root', className)}
className={clsx(
/* @deprecated Use `OxygenAvatar-root` instead. https://github.com/wso2/oxygen-ui/issues/274 */
'oxygen-avatar',
'OxygenAvatar-root',
className,
)}
sx={{bgcolor: randomBackgroundColor ? color : undefined}}
{...rest}
>
Expand Down
8 changes: 0 additions & 8 deletions packages/react/src/components/Avatar/avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
* under the License.
*/

/**
* This class is deprecated (https://github.com/wso2/oxygen-ui/issues/274).
* Use OxygenAvatar-root instead.
*/
.oxygen-avatar {
/* Add Styles */
}

.OxygenAvatar-root {
text-transform: capitalize;
}

0 comments on commit cb18225

Please sign in to comment.