Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make the site hub View Site link always visible.
  • Loading branch information
afercia committed Dec 28, 2023
commit d16c0f46ec6d9b7e0a465e361cd11844da11b944
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