-
Notifications
You must be signed in to change notification settings - Fork 2k
Update DIFM theme step #106860
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
base: trunk
Are you sure you want to change the base?
Update DIFM theme step #106860
Conversation
`MShotsImage` already checks whether `options?.oldHighResImageLoading` is truthy, and if so renders `MShotsImageTreatment` instead of `MShotsImageControl`
…n picker thumbnails
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
| if ( options?.oldHighResImageLoading ) { | ||
| return scrollable ? ( | ||
| <div className={ className } style={ style } aria-labelledby={ labelledby }> | ||
| <img ref={ imgRef } className="mshots-dummy-image" aria-hidden="true" alt="" /> | ||
| </div> | ||
| ) : ( | ||
| <img | ||
| ref={ imgRef } | ||
| { ...{ className, style, src, alt, loading } } | ||
| aria-labelledby={ labelledby } | ||
| /> | ||
| ); | ||
| } // else, prettier doesn't like having an else after a return |
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.
This code was unreachable, MShotsImage already checks whether options?.oldHighResImageLoading is truthy, and if so renders MShotsImageTreatment instead of MShotsImageControl.
Fixes DOTTHEM-62
Proposed Changes
w(the output width) on the mShots settings used for the design picker thumbnails.Why are these changes being made?
Testing Instructions
/start/do-it-for-me/new-or-existing-siteDesignstepPre-merge Checklist