Skip to content

Commit

Permalink
Remove the launch bar from the frontend of unpublished atomic sites (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Jan 17, 2025
1 parent c4666af commit 486df0a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 433 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: removed

Remove the launch bar from the frontend of Atomic sites
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,7 @@ document.addEventListener( 'DOMContentLoaded', () => {
document.body.style.scrollPaddingTop = '50px';
launchBanner.style.display = null;

let container;
if ( launchBarUserData?.isAtomic ) {
const isShadowDOM = !! ( document.head.attachShadow || document.head.createShadowRoot );
if ( isShadowDOM ) {
container = document.querySelector( '#wpcom-launch-banner-wrapper' ).shadowRoot;
} else {
container = document.querySelector( '#wpcom-launch-banner-wrapper' );
}
} else {
container = document;
}
const container = document;
const popoverToggle = container.querySelector( '.launch-bar-global-styles-toggle' );
const popover = container.querySelector( '.launch-bar-global-styles-popover' );
const upgradeButton = container.querySelector( '.launch-bar-global-styles-upgrade' );
Expand Down
4 changes: 4 additions & 0 deletions projects/plugins/wpcomsh/changelog/remove-launch-bar
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: removed

Remove the launch bar from the frontend of Atomic sites
182 changes: 0 additions & 182 deletions projects/plugins/wpcomsh/private-site/logged-in-banner.css

This file was deleted.

Loading

0 comments on commit 486df0a

Please sign in to comment.