Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mannycarrera4 authored Sep 19, 2023
1 parent 11b695e commit d26ec73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/react/avatar/lib/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface AvatarProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
* The object-fit CSS property sets how the content of a replaced element,
* such as an <img> or <video>, should be resized to fit its container.
* See [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
* If you image is not a square, you can use this property to ensure the image is rendered properly.
* If your image is not a square, you can use this property to ensure the image is rendered properly.
*/
objectFit?: Property.ObjectFit;
}
Expand Down
8 changes: 4 additions & 4 deletions modules/react/avatar/stories/stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ storiesOf('Components/Indicators/Avatar', module)
))
.add('Non-Square Image', () => (
<div className="story">
<h3>Rectangle Image</h3>
<h3>Original Rectangle Image</h3>
<img alt="" src="https://placekitten.com/g/450/200" />
<h3>Round Image</h3>
<h3>Using Object Fit on a Rectangle Image</h3>
<Avatar as="div" size={200} url="https://placekitten.com/g/450/200" objectFit="contain" />
<h3>Square Image</h3>
<h3>Original Square Image</h3>
<img alt="" src="https://placekitten.com/g/450/450" />
<h3>Round Image</h3>
<h3>using Object Fit on a Square Image</h3>
<Avatar as="div" size={200} url="https://placekitten.com/g/450/450" objectFit="contain" />
</div>
));
Expand Down

0 comments on commit d26ec73

Please sign in to comment.