accelerated-mobile-pages
accelerated-mobile-pages copied to clipboard
Migrate `amp-image-lightbox` to use `amp-lightbox-gallery`
We should use "amp-lightbox-gallery" instead of "amp-image-lightbox". In amp-lightbox-gallery some extra features are there (like,images can be zoomed and scrolled) but amp-image-lightbox does not support this.
For reference: https://github.com/ampproject/amphtml/issues/22955
https://wordpress.org/support/topic/lightbox-for-images-cant-be-zoomed-on-mobiles/
Need to remove the previous script of the lightbox - https://monosnap.com/file/Om4F5thRMRtHy4r9d4XWVIQM3q0Q2j
Lightbox true needs to be in the condition?
here https://github.com/ahmedkaludi/accelerated-mobile-pages/commit/df1e21d9306019e5bfe2260510e4a836fab87387#diff-e7f6ca8ce090f4ff7573a4eec8ccf52dR174
to here:
https://github.com/ahmedkaludi/accelerated-mobile-pages/commit/df1e21d9306019e5bfe2260510e4a836fab87387#diff-e7f6ca8ce090f4ff7573a4eec8ccf52dR188
Ready to merge.
This one is not solved properly. I think it needs one more review. So not merging in the deploy.
Sure.