-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
✨ Render close button for lightbox ads in inabox #16886
Changes from 20 commits
3594afb
9918244
8024065
bdfefd8
469688e
ebf8fdf
5b57fcf
b5c9c86
dda67ac
632581d
4751fc3
46042a7
548a052
1bf4b53
9d8066c
55f894a
d2efb5b
f558081
a1000c4
badafa6
c339425
d08ef8e
08617b9
c1cac8d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
- aghassemi | ||
- alanorozco | ||
- cathyxz |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,32 @@ tags: { # <amp-lightbox> | |
supported_layouts: NODISPLAY | ||
} | ||
} | ||
tags: { # <amp-lightbox close-button> in AMP4ADS. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2 spaces before comment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
html_format: AMP4ADS | ||
tag_name: "AMP-LIGHTBOX" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@Gregable since I'm out tomorrow. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. Not sure why the original |
||
spect_name: "amp-lightbox [AMP4ADS]" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. spec There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whoops, done. |
||
requires_extension: "amp-lightbox" | ||
attrs: { | ||
name: "animate-in" | ||
value_casei: "fade-in" | ||
value_casei: "fly-in-bottom" | ||
value_casei: "fly-in-top" | ||
} | ||
attrs: { | ||
name: "close-button" | ||
# Require `close-button` since we can't rely on the lightbox content | ||
# containing a UI affordance to close it, effectively hijacking the | ||
# document otherwise. | ||
mandatory: true | ||
} | ||
attrs: { name: "controls" } | ||
attrs: { name: "from" } | ||
|
||
# Never allow `scrollable` as it would break layout with close button and | ||
# async iframe interaction. | ||
|
||
attr_lists: "extended-amp-global" | ||
amp_layout: { | ||
supported_layouts: NODISPLAY | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or, can we just check if the element is in an iframe? Is there a way to check if the owner document is the one AMP runtime is on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted.