Skip to content

Commit

Permalink
Fix site editor back button visual regressions (#66166)
Browse files Browse the repository at this point in the history
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
  • Loading branch information
5 people authored Oct 16, 2024
1 parent 5dc1bdc commit 27aed30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/sidebar-button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Button } from '@wordpress/components';
export default function SidebarButton( props ) {
return (
<Button
__next40pxDefaultSize
size="compact"
{ ...props }
className={ clsx( 'edit-site-sidebar-button', props.className ) }
/>
Expand Down
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/sidebar-button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
outline: 3px solid transparent;
}

&:hover,
&:hover:not(:disabled,[aria-disabled="true"]),
&:focus-visible,
&:focus,
&:not([aria-disabled="true"]):active,
&:not(:disabled,[aria-disabled="true"]):active,
&[aria-expanded="true"] {
color: $gray-100;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@
.edit-site-sidebar-navigation-screen__title {
flex-grow: 1;
overflow-wrap: break-word;
padding: $grid-unit-05 * 0.5 0 0 0;

&#{&},
&#{&} .edit-site-sidebar-navigation-screen__title {
line-height: $font-line-height-x-large;
}
}

.edit-site-sidebar-navigation-screen__actions {
Expand Down

0 comments on commit 27aed30

Please sign in to comment.