diff --git a/packages/edit-site/src/components/site-hub/index.js b/packages/edit-site/src/components/site-hub/index.js index 7af0d53090c578..f79df2df367090 100644 --- a/packages/edit-site/src/components/site-hub/index.js +++ b/packages/edit-site/src/components/site-hub/index.js @@ -180,7 +180,10 @@ const SiteHub = memo( ( { isTransparent, className } ) => { 'View site (opens in a new tab)' ) } icon={ external } - className="edit-site-site-hub__site-view-link" + className={ classnames( + 'edit-site-site-hub__site-view-link', + { 'is-transparent': isTransparent } + ) } /> ) } diff --git a/packages/edit-site/src/components/site-hub/style.scss b/packages/edit-site/src/components/site-hub/style.scss index 49e5304d1688fc..ed11bb9ad4fb46 100644 --- a/packages/edit-site/src/components/site-hub/style.scss +++ b/packages/edit-site/src/components/site-hub/style.scss @@ -9,6 +9,7 @@ } .edit-site-site-hub__site-title, + .edit-site-site-hub__site-view-link, .edit-site-site-hub_toggle-command-center { transition: opacity ease 0.1s; @@ -20,22 +21,10 @@ .edit-site-site-hub__site-view-link { flex-grow: 0; margin-right: var(--wp-admin-border-width-focus); - @include break-mobile() { - opacity: 0; - transition: opacity 0.2s ease-in-out; - } - &:focus { - opacity: 1; - } svg { fill: $gray-200; } } - &:hover { - .edit-site-site-hub__site-view-link { - opacity: 1; - } - } } .edit-site-site-hub__post-type {