-
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
Open
mannycarrera4
wants to merge
9
commits into
Workday:support
Choose a base branch
from
mannycarrera4:mc-add-image-component
base: support
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
fix: Add Image component and CDN src support to Graphic component #3062
mannycarrera4
wants to merge
9
commits into
Workday:support
from
mannycarrera4:mc-add-image-component
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ↗︎ |
mannycarrera4
changed the title
feat: Add Image component and CDN src support to Graphic component
fix: Add Image component and CDN src support to Graphic component
Dec 6, 2024
mannycarrera4
commented
Dec 9, 2024
**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
mannycarrera4
commented
Dec 9, 2024
<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.
mannycarrera4
commented
Dec 9, 2024
mannycarrera4
added
on hold
PR is on hold until further notice
and removed
ready for review
Code is ready for review
labels
Dec 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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)