Restrict site visibility badge to WC Home screen & adjust badge padding (#46359)

* Adjust padding on site visibility status badge

* Only show badge on WooCommerce home

* Add changelog
This commit is contained in:
Chi-Hsuan Huang 2024-04-09 22:34:37 +08:00 committed by GitHub
parent c48f80ed30
commit f74104667e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 1 deletions

View File

@ -101,7 +101,8 @@ export const Header = ( { sections, isEmbedded = false, query } ) => {
}
}, [ isEmbedded, sections, siteTitle ] );
const isHomescreen = isWCAdmin() && getScreenFromPath() === 'homescreen';
const isHomescreen =
isWCAdmin() && getScreenFromPath() === 'homescreen' && ! query.task;
const { isLoading, launchYourStoreEnabled, comingSoon, storePagesOnly } =
useLaunchYourStore();
const showLaunchYourStoreStatus =

View File

@ -19,6 +19,10 @@
border-radius: 4px;
height: 24px;
svg {
margin-left: 4px;
}
&.is-live {
background-color: #e6f2e8;
color: #005c12;

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
Update lys status badge padding and only show it on WooCommerce home'