-
Notifications
You must be signed in to change notification settings - Fork 801
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
Tiled Gallery Block causes pointer cursor on every block that has nesting #13428
Comments
Fixes #13428 Until now we would rely on 2 str_replace to add Carousel data to div and ul containers in post content. This worked, but wasn't smart enough to know to ignore specific divs like Columns blocks. By using DOMDocument, we can go through the post content in a more readable way, to detect gallery blocks as well as regular galleries and images.
…13446) * Carousel: improve detection of containers where we should add data Fixes #13428 Until now we would rely on 2 str_replace to add Carousel data to div and ul containers in post content. This worked, but wasn't smart enough to know to ignore specific divs like Columns blocks. By using DOMDocument, we can go through the post content in a more readable way, to detect gallery blocks as well as regular galleries and images. * Bail if the server does not support DOMDocument * Store and return value from libxml_use_internal_errors See https://github.com/Automattic/jetpack/pull/13446/files#r321866447 Co-Authored-By: Michael D Adams <michael.d.adams@gmail.com> * No need to escape data key See https://github.com/Automattic/jetpack/pull/13446/files#r321867238 Co-Authored-By: Michael D Adams <michael.d.adams@gmail.com> * Wrap DOM usage in libxml_disable_entity_loader See #13446 (review)
…uld add data (#13446) * Carousel: improve detection of containers where we should add data Fixes #13428 Until now we would rely on 2 str_replace to add Carousel data to div and ul containers in post content. This worked, but wasn't smart enough to know to ignore specific divs like Columns blocks. By using DOMDocument, we can go through the post content in a more readable way, to detect gallery blocks as well as regular galleries and images. * Bail if the server does not support DOMDocument * Store and return value from libxml_use_internal_errors See https://github.com/Automattic/jetpack/pull/13446/files#r321866447 Co-Authored-By: Michael D Adams <michael.d.adams@gmail.com> * No need to escape data key See https://github.com/Automattic/jetpack/pull/13446/files#r321867238 Co-Authored-By: Michael D Adams <michael.d.adams@gmail.com> * Wrap DOM usage in libxml_disable_entity_loader See #13446 (review)
Seen in #16173198-hc |
Seen in 2548654-zen |
Seen in #18730714-hc |
Just had this report in 19440801-hc |
Another case here: #18635664-hc |
Another report seen in 2820101-zen (during a 1:1 Support session) |
I was just about to create a new issue and Github pointed me here. Here are some steps that I used to reproduce the issue.
The root issue here seems to be that we're adding Here's a screenshot of how I set up my test post: |
Perhaps an easy win here would be to change the selector to something like It seems like the latest patch above has been stalled for a bit. |
Another case reported here: #20603495-hc |
FWIW - I was able to use this CSS to work around the issue in the time being:
|
Another report: https://wordpress.com/forums/topic/cover-block-hover-issue/ |
Another report: hc-22637348 I had to apply the css above, to pretty much every block on the page to help for the time being. |
Could a bandaid fix be to simply remove the cursor CSS, or attach it to a class? That would fix the visual issue until the underlying issue can be addressed. |
Another case surfaced in #27985992-hc Gave this CSS as temporary workaround: [data-carousel-extra] {cursor: default !important;} After I had a chance to check, it indeed was a gallery block that was present on the page. Changing to a masonry block fixed the issue. Follow up: #3770531-zd |
Another report: 3939250-zd-woothemes Applying @benchilcote's CSS workaround helped. Thanks! |
Another report: zd 3987866 Applying @benchilcote's CSS workaround helped. Thanks! |
4035130-zen Can be worked around by the regular Gallery block to one of the other galleries that's not a Tiled Gallery block. |
4092207-zd-woothemes applied CSS |
This is still an issue with JP 9.9-beta and either the Gallery or Tiled Gallery block. Related: #7771 |
I fixed the cursor problem in PR #20882 by making the CSS selector more specific. However, we're still adding |
Steps to reproduce the issue
pointer
cursorProbably cause
The gallery appears to change the container divs of every block containing child blocks, not just the tiled gallery itself, and adds
data-carousel-extra
with a few image properties. This on its own seems a bit overreachy, but the actual cursor happens because this CSS is output by Jetpack:Expected behavior
Tiled Gallery should probably just affect itself.
The text was updated successfully, but these errors were encountered: