-
Notifications
You must be signed in to change notification settings - Fork 30
Refactor image
-> media
#14411
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
Refactor image
-> media
#14411
Conversation
c628131
to
89eed1e
Compare
89eed1e
to
576d854
Compare
576d854
to
d1d8ba8
Compare
|
||
const sizingStyles = ( | ||
imageSize: ImageSizeType, | ||
imageSize: MediaSizeType, |
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.
Assuming imageSize and imagePositionType have been left as is as avatar is (currently) always an image.
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.
Yep! I've tried to leave these alone when it can only be an image, with the goal of making it as easy as possible to understand for the reader. If we were to add another media type to Avatar, then we should update this prop.
Overdue on PROD (merged by @domlander 30 minutes and 8 seconds ago) What's gone wrong? |
Seen on PROD (merged by @domlander 5 hours, 37 minutes and 21 seconds ago) Please check your changes! |
What does this change?
Refactors mentions of
image
where over time this has come to meanmedia
. We started displaying only images in fronts cards, but over time we have added slideshows, videos and more, somedia
is a better term for where this content is referenced.Why?
Less confusing to read the code.