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
* Add mobile blocked content placeholder to CTL
* Add styles for YouTube Click to Load blocked placeholder
* Fix media-queries for Firefox | Change DDGCtlPlaceholderBlocked to use arrow functions and keep reference on Firefox
* Rollback translation changes
* Fix text alignment
* Update resizing of new templates | Fix issue with inline parent elements
* - Add container to element inside shadow root to improve layouting.
This container is set to copy the styles from the root element outside
the shadow root.
- Add Web Component lifecycle functions to update the styles from the
Placeholder Blocked template when connected to the DOM and when the
root elements gets its styles updated.
- Use CSS classes to set the size and show/hide content instead of media queries.
That because the size of the placeholder isn't related to the size of the screen.
- Minor style adjustments.
* Remove "inset" reset
* Attend PR comments:
- Add comment explaining new custom element
- Rename DDGCtlPlaceholderBlocked -> DDGCtlPlaceholderBlockedElement
- General fixes to CSS - reset styles from host element, clean up styles, etc
* Style updates to attend Design Review
- Introduce size-xs to show only the unblock button when there isn't enough height
to show our placeholder copy -> pending review
- Update CSS selectors to directly target size-md and size-lg when necessary.
- Update the placeholder size after style updates from the parent element, because we
change the root element height based on the parent size after injecting it on the page,
and that might change our placeholder to a different size.
* Fix issue with size var assignment
* Define custom element params type | Move ternaries out of template | Introduce toggle size param and decouple it from platform logic
* Create CSS variables for Design System colors | Use CSS vars and media query to automatically update values to dark theme
* Move CSS vars to separate file | Move params definitions to top of constructor and split localized copy in different params
* Add comment about using arrow functions on CTL class
* Fix lint issues
* Reduce min height to show only unblock button to 110px
---------
Co-authored-by: francielefaccin <[email protected]>
0 commit comments