Skip to content

Add AMP compatibility to Carousel module - #15398

Merged
kraftbj merged 1 commit into
masterfrom
add/carousel-module-amp
Apr 24, 2020
Merged

kraftbj merged 1 commit into
masterfrom
add/carousel-module-amp

Conversation

@kienstra

@kienstra kienstra commented Apr 9, 2020

Copy link
Copy Markdown
Contributor

Fixes #15397

Changes proposed in this Pull Request:

Is this a new feature or does it add/remove features to an existing part of Jetpack?

  • Enhances an existing feature

Testing instructions:

  1. Ensure the AMP plugin is active
  2. In AMP Settings, select Transitional mode
  3. In Jetpack > Settings, Writing, ensure this is toggled this on:

jetpack-settings

  1. Create a new post
  2. Add a Gallery block, and select images
  3. Add this to a shortcode block, but use IDs from your environment:
[gallery ids="761,755,8"]
  1. Preview the AMP front-end by clicking the AMP icon:

amp-button

  1. Click an image in the Gallery block or shortcode

  2. Expected: this opens a lightbox:
    gallery-lightbox

  3. Go back to the editor

  4. Add an image block, and add a link to an attachment page:

image-link-attachment

  1. Preview the AMP front-end again
  2. Click the image
  3. Expected: a lightbox opens
  4. Go back to the editor
  5. Add another image block, with a link to the media file (not the attachment page)
  6. Add another image block with no link at all
  7. Go to the AMP front-end again
  8. Click those 2 new image blocks
  9. Expected: no lightbox opens

Proposed changelog entry for your changes:

  • Add AMP compatibility to the Carousel module, using amp-lightbox

@kienstra
kienstra requested a review from a team April 9, 2020 23:37
@kienstra kienstra added the AMP label Apr 9, 2020
@jetpackbot

Copy link
Copy Markdown
Collaborator
Warnings
⚠️

The PR is missing at least one [Status] label. Suggestions: [Status] In Progress, [Status] Needs Review

This is an automated check which relies on PULL_REQUEST_TEMPLATE. We encourage you to follow that template as it helps Jetpack maintainers do their job. If you think 'Testing instructions' or 'Proposed changelog entry' are not needed for your PR - please explain why you think so. Thanks for cooperation 🤖

Generated by 🚫 dangerJS against 6ae6c83

@kienstra kienstra added the [Status] Needs Review This PR is ready for review. label Apr 9, 2020
@kienstra

kienstra commented Apr 9, 2020

Copy link
Copy Markdown
Contributor Author

Hi @MattGeri,
Could you please review this when you have a chance? Thanks!

@jeherve jeherve added this to the 8.5 milestone Apr 14, 2020
@jeherve jeherve added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Carousel A fullscreen modal appearing when clicking on an image in a gallery or tiled gallery. labels Apr 14, 2020
@kraftbj
kraftbj requested review from kraftbj and removed request for a team April 24, 2020 15:50
@matticbot

Copy link
Copy Markdown
Contributor

Caution: This PR has changes that must be merged to WordPress.com
Hello kienstra! These changes need to be synced to WordPress.com - If you 're an a11n, please commandeer, review, and approve D42400-code before merging this PR. Thank you!
This revision will be updated with each commit to this PR

@kraftbj

kraftbj commented Apr 24, 2020

Copy link
Copy Markdown
Contributor

r206423-wpcom

@kraftbj
kraftbj merged commit 3fbdbf1 into master Apr 24, 2020
@kraftbj
kraftbj deleted the add/carousel-module-amp branch April 24, 2020 16:27
@matticbot matticbot added [Status] Needs Changelog and removed [Status] Needs Review This PR is ready for review. labels Apr 24, 2020
jeherve added a commit that referenced this pull request Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AMP Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Carousel A fullscreen modal appearing when clicking on an image in a gallery or tiled gallery. Touches WP.com Files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve AMP compatibility of the Carousel module

5 participants