Skip to content

Commit

Permalink
Site Editor: Fix site link accessibility issues (#52744)
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Jul 19, 2023
1 parent eb3da3c commit d6f4f60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/site-hub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const SiteHub = forwardRef( ( { isTransparent, ...restProps }, ref ) => {
<Button
href={ homeUrl }
target="_blank"
label={ __( 'View site' ) }
label={ __( 'View site (opens in a new tab)' ) }
aria-label={ __(
'View site (opens in a new tab)'
) }
Expand Down
3 changes: 1 addition & 2 deletions packages/edit-site/src/components/site-hub/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@

.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 {
outline: none;
box-shadow: none;
opacity: 1;
}
svg {
Expand Down

0 comments on commit d6f4f60

Please sign in to comment.