amp-wp icon indicating copy to clipboard operation
amp-wp copied to clipboard

Disable lightbox toggle for image linking to attachment pages

Open swissspidy opened this issue 6 years ago • 4 comments

Feature description

This is a follow-up to #3450. As proposed in https://github.com/ampproject/amp-wp/pull/3460#pullrequestreview-304677157, "the lightbox toggle should probably be prevented from even being made available when the image block has a link to the attachment page. Otherwise, the lightbox toggle has no effect when an attachment page is linked."


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry

swissspidy avatar Oct 21 '19 16:10 swissspidy

@jamesozzie pointed out that images in AMP pages now automatically get lightboxing. See https://github.com/ampproject/amphtml/blob/master/spec/auto-lightbox.md

Do we even need the lightbox toggle anymore?

westonruter avatar Oct 23 '19 18:10 westonruter

Do we even need the lightbox toggle anymore?

Closing (as per comment above) and will reopen if needed.

amedina avatar Apr 01 '20 01:04 amedina

Let's leave open because we should remove the toggle if indeed it is unnecessary.

westonruter avatar Apr 01 '20 01:04 westonruter

Closely related issue: #4591

westonruter avatar Apr 16 '20 00:04 westonruter

Attachment pages are disabled in 6.4. Also, in 6.4 lightbox images are now supported in core. So in https://github.com/ampproject/amp-wp/issues/7676 we're going to eliminate the AMP toggle when on 6.4. Otherwise, it doesn't seem necessary to anything further with this issue.

westonruter avatar Nov 30 '23 22:11 westonruter