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 authored and tellthemachines committed Jul 24, 2023
1 parent c77d9f5 commit ffd69e0
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 @@ -164,7 +164,7 @@ const SiteHub = forwardRef( ( props, 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 @@ -15,13 +15,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 ffd69e0

Please sign in to comment.