Skip to content

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
@github-actions
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 <sourav08@git.wordpress.org>

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