Image block: Remove Lightbox markup if is set as disabled.#51692
Image block: Remove Lightbox markup if is set as disabled.#51692cbravobernal merged 3 commits intotrunkfrom
Conversation
|
Flaky tests detected in 87357b0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5321942054
|
There was a problem hiding this comment.
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
|
artemiomorales
left a comment
There was a problem hiding this comment.
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