Skip to content

Commit

Permalink
Make the site hub View Site link always visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Dec 28, 2023
1 parent a50e4c7 commit d16c0f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
5 changes: 4 additions & 1 deletion packages/edit-site/src/components/site-hub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
) }
/>
) }
</HStack>
Expand Down
13 changes: 1 addition & 12 deletions packages/edit-site/src/components/site-hub/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 {
Expand Down

0 comments on commit d16c0f4

Please sign in to comment.