You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prevent loading auto lightbox when disabled using data-amp-auto-lightbox-disable attribute (ampproject#37854)
* Prevent loading auto lightbox when disabled using attribute
* Fix failing test case
* ✨ Add `data-amp-auto-lightbox-disable` to `DISABLED_BY_ATTR`
Marking `data-amp-auto-lightbox-disable` as `<html ⚡ lang="en" data-amp-auto-lightbox-disable>` will disable `amp-auto-lightbox` from auto-load on page load.
* ♻️ Move `data-amp-auto-lightbox-disable` attribute checking from `body` to `html`
This will check if HTML Tag has `data-amp-auto-lightbox-disable` attribute like:
`<html ⚡ lang="en" data-amp-auto-lightbox-disable>`. If it has, it will disable auto-loading of `amp-auto-lightbox` on page load.
* 📖 Update markdown `auto-lightbox.md`
* ⏪ Revert unit-test changes to original
Co-authored-by: Anurag Vasanwala <[email protected]>
0 commit comments