-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Cherry-picked commits for WordPress 6.4 RC1 v3 #55405
Conversation
…5404) Temporary fix to resolve breaking tests in `trunk` after the WordPress 6.4 backport.
This pull request changed or added PHP files in previous commits, but none have been detected in the latest commit. Thank you! ❤️ |
…image (#55212) * Reimplement lightbox trigger as a minimal button in corner of image * Remove obsolete directives * Update directives to fire logic properly via image or button click * Ensure lightbox button only appears when hovering over image, not whole figure * Ensure close button does not receive focus when opening lightbox via mouse * Ensure button only receives focus when lightbox is closed via keyboard * Add comments * Prevent unnecessary focus being shown on mobile * Add dynamic positioning for button when image uses 'contain' setting * WORK IN PROGRESS - Begin accounting for various edge cases We need to account for the fact that an image can have custom dimensions, aspect ratio, cover or contain, captions, thumbnail dimensions, and potentially other scenarios. This commit begins to address those issues but notably fails in cases where one uses a horizontal image, at full scale, with custom aspect ratio, using 'contain'. It seems to work in all other cases that I've checked but needs more thorough testing and the code can probably be cleaner, and may contain some unnecessary items. * Simplify and improve button placement logic * Simplify logic to show button on hover * Fix styles * Simplify calls to showLightbox * Fix style inconsistency between browsers * Change button position slightly * Reduce button offset * Add style override for better consistency across themes * Fix logic so lightbox animates as intended; remove extraneous code * Update comment
Size Change: +318 B (0%) Total Size: 1.63 MB
ℹ️ View Unchanged
|
Flaky tests detected in 7bce633. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6547288124
|
Noting that although #55212 has been merged, the Lightbox still needs code and accessibility fixes. |
Only suppresses the display of notices on the widget block editor screen if JavaScript is available.
Merged considering time constraints to avoid delaying RC1 and with the following in mind:
|
Latest commits for WordPress 6.4 RC1.
Included changes: