-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add Image component and CDN src support to Graphic component #3062
fix: Add Image component and CDN src support to Graphic component #3062
Conversation
Workday/canvas-kit Run #8129
Run Properties:
|
Project |
Workday/canvas-kit
|
Branch Review |
refs/pull/3062/merge
|
Run status |
Passed #8129
|
Run duration | 05m 19s |
Commit |
3ef5f4aae0 ℹ️: Merge 54a2dda926b7097d2a22fd08d243d89a90ad1901 into 359d262385a8e4d2f510dd2f1dee...
|
Committer | Manuel Carrera |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
3
|
Skipped |
0
|
Passing |
1006
|
View all changes introduced in this branch ↗︎ |
**PR:** [#3062](https://github.com/Workday/canvas-kit/pull/3062) | ||
|
||
We've updated `Graphic` and its `src` prop to accept a `string` value to support images loaded from a CDN or SAS. The previous API is still supported. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanted to add this to the upgrade guide for people moving from v10 to v11
<h3>Using a Square Image</h3> | ||
<Avatar as="div" size={200} url="https://placekitten.com/g/450/450" /> | ||
<Avatar as="div" size={200} url="https://i.imgur.com/himSfZn.jpeg" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These URLs were broken, so I updated them.
closing this to rethink about different possibilities |
Summary
Fixes: #3049
Release Category
Components
Release Note
Image
component has been added to better support raster images or images loaded from a CDN/SAS.Graphic
component now support a string via thesrc
prop.Checklist
ready for review
has been added to PRFor the Reviewer
Where Should the Reviewer Start?
Areas for Feedback? (optional)
Testing Manually
Screenshots or GIFs (if applicable)
Thank You Gif (optional)