Skip to content
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

Fix: Remove the scrollbar issue when image lightbox is active #69528

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

Sourav61
Copy link
Contributor

Fixed the image lightbox scrollbar issue when image lightbox is active

What?

Closes #69527

Why?

When the image lightbox is opened, the scrollbar is available even though there is no content to be displayed other than the image.

How?

  • Added appropriate css to remove the scrollbar when the image lightbox is active

Testing Instructions

  1. Add an Image block in the editor.
  2. In the block toolbar, open Link settings and enable the Enlarge on Click option.
  3. Preview the page and click on the image to open the lightbox with the .zoom.active class.
  4. Scroll the page and observe that the scrollbar remains visible instead of being hidden.

Remove the scrollbar issue when image lightbox is active
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Sourav61 <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Block] Image Affects the Image Block labels Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scrollbar Remains Visible When Image Lightbox is Active
2 participants