From 11b695e44347190e6f6910b066a60317703b5a6a Mon Sep 17 00:00:00 2001 From: Thu Nguyen Date: Thu, 14 Sep 2023 23:47:31 -0700 Subject: [PATCH 1/4] fix: Support for Non-Square Input Image for Avatar component --- modules/react/avatar/lib/Avatar.tsx | 22 +++++++++++++++++++--- modules/react/avatar/stories/stories.tsx | 12 ++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/modules/react/avatar/lib/Avatar.tsx b/modules/react/avatar/lib/Avatar.tsx index 4ddd43c165..ae7b3e264d 100644 --- a/modules/react/avatar/lib/Avatar.tsx +++ b/modules/react/avatar/lib/Avatar.tsx @@ -1,4 +1,5 @@ import React, {useState} from 'react'; +import {Property} from 'csstype'; import {styled, focusRing, hideMouseFocus} from '@workday/canvas-kit-react/common'; import isPropValid from '@emotion/is-prop-valid'; import {borderRadius, colors} from '@workday/canvas-kit-react/tokens'; @@ -35,6 +36,13 @@ export interface AvatarProps extends React.ButtonHTMLAttributes or