-
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
πποΈ Preventing publishers CSS from overriding stories system layer and bookend. #13270
Conversation
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.
I think we'll also want this class on the AmpStoryHint
container, and the LANDSCAPE_ORIENTATION_WARNING
and UNSUPPORTED_BROWSER_WARNING
shown in AmpStory
.
@@ -123,6 +123,20 @@ amp-story[standalone]:fullscreen { | |||
background-color: rgba(0, 0, 0, 0.2) !important; | |||
} | |||
|
|||
.i-amphtml-story-system-reset, | |||
.i-amphtml-story-system-reset * { | |||
border: none !important; |
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.
Did you try all
? Do we know if that's a reasonable approach or not?
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.
As discussed offline, all
wouldn't let us override properties.
β¦on and unsupported browser.
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.
Not super happy with the hacky overrides, but that should do it until we render the components in shadow dom.
@@ -123,6 +123,20 @@ amp-story[standalone]:fullscreen { | |||
background-color: rgba(0, 0, 0, 0.2) !important; | |||
} | |||
|
|||
.i-amphtml-story-system-reset, | |||
.i-amphtml-story-system-reset * { | |||
border: none !important; |
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.
As discussed offline, all
wouldn't let us override properties.
β¦d bookend. (ampproject#13270) * Preventing CSS overrides. * Preventing CSS overrides for the navigation hint, landscape orientation and unsupported browser.
β¦d bookend. (ampproject#13270) * Preventing CSS overrides. * Preventing CSS overrides for the navigation hint, landscape orientation and unsupported browser.
β¦d bookend. (ampproject#13270) * Preventing CSS overrides. * Preventing CSS overrides for the navigation hint, landscape orientation and unsupported browser.
Before we are able to render the system layer and bookend into shadow DOM, here is a temporary fix.
Related-to #12917