-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Navis Slideshow JS is broken from recent changes in Gutenberg; styles are misapplied #1664
Comments
…vent 'display: table; from causing issues when image is viewed at full size, per #1664
#1675 didn't go far enough. The <figure class="wp-block-image alignfull" style="max-width: 100%;">
<img src="http://mstoday.test/wp-content/uploads/2018/02/24496652921_1108fff3b7_h-1170x780.jpg" alt="" class="wp-image-129823" srcset="http://mstoday.test/wp-content/uploads/2018/02/24496652921_1108fff3b7_h-1170x780.jpg 1170w, http://mstoday.test/wp-content/uploads/2018/02/24496652921_1108fff3b7_h-336x224.jpg 336w, http://mstoday.test/wp-content/uploads/2018/02/24496652921_1108fff3b7_h-768x512.jpg 768w, http://mstoday.test/wp-content/uploads/2018/02/24496652921_1108fff3b7_h-771x514.jpg 771w, http://mstoday.test/wp-content/uploads/2018/02/24496652921_1108fff3b7_h.jpg 1600w" sizes="(max-width: 1170px) 100vw, 1170px">
<figcaption>This is a full-width image. It should be preceded by a single paragraph tag.</figcaption
</figure> A similar bug: We must also must take care of the caption positioning changes in #1671 which have caused the caption to reappear on the slideshow: .navis-slideshow.navis-full {
&.aligncenter,
&.alignleft,
&.alignright,
&.is-resized {
display: block;
> figcaption {
display: none;
}
}
} Also note in that image that the global nav is drawing over top of the image. That can be fixed by removing this z-index, added in 5a56ce5 : |
A fix for this should be tested against both C and MST. |
…hows in image blocks Implements #1664 (comment)
Using https://secure.helpscout.net/conversation/802967329/3453/?folderId=1211654 as an example, if:
then if that image is clicked, it pops up into a strange position, and can't be dismissed.
Tyler wrote:
So did some debugging on this:
Tyler's solution of removing the
display: table
works, but I don't understand why.The text was updated successfully, but these errors were encountered: