-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Image block: Remove Lightbox markup if is set as disabled. #51692
Image block: Remove Lightbox markup if is set as disabled. #51692
Conversation
Flaky tests detected in 87357b0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5321942054
|
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.
Two thoughts:
1.) While testing, I realized that when specifying default
for the lightbox, the animation
dropdown is visible when it shouldn't be. I can handle that on this branch or a separate PR, whichever you prefer, or feel free to tackle it if you have bandwidth
lightbox-dropdown-default.mp4
2.) We should probably add a test case for this.
I can add a test for the Lightbox markup issue. |
Size Change: +9.58 kB (+1%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
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.
Ok looks good to me 👍
Thanks!
…#51692) * Do not include lightbox markup if disabled * Add e2e test for markup issue * Rename test description
What?
Right now, even if you disable the Lightbox, the HTML code that makes this possible is still there. With this PR, if Lighbox is disabled, we don't add all that extra data.
Why?
We were adding no needed bytes and, also we caused a misbehavior, showing a magnifying glass that indicates a behavior that is not happening.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before PR:
lightbox_before_pr.mov
After PR:
lightbox_after_pr.mov