Skip to content

Commit

Permalink
Apply 40px across summary panel. (#58730)
Browse files Browse the repository at this point in the history
* Apply 40px across summary panel.

* Increase component sizes

---------

Co-authored-by: Lena Morita <lena@jaguchi.com>
  • Loading branch information
jasmussen and mirka authored Feb 9, 2024
1 parent 45a49c9 commit 9010d45
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function PostVisibilityToggle( { isOpen, onClick } ) {
const label = usePostVisibilityLabel();
return (
<Button
__next40pxDefaultSize
className="edit-post-post-visibility__toggle"
variant="tertiary"
aria-expanded={ isOpen }
Expand Down
6 changes: 3 additions & 3 deletions packages/editor/src/components/post-panel-row/style.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
.editor-post-panel__row {
width: 100%;
min-height: $button-size;
min-height: $button-size-next-default-40px;
justify-content: flex-start !important;
align-items: flex-start !important;
}

.editor-post-panel__row-label {
width: 30%;
flex-shrink: 0;
min-height: $button-size;
min-height: $button-size-next-default-40px;
display: flex;
align-items: center;
}

.editor-post-panel__row-control {
flex-grow: 1;
min-height: $button-size;
min-height: $button-size-next-default-40px;
display: flex;
align-items: center;
}
1 change: 1 addition & 0 deletions packages/editor/src/components/post-schedule/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function PostSchedulePanel() {
contentClassName="editor-post-schedule__dialog"
renderToggle={ ( { onToggle, isOpen } ) => (
<Button
__next40pxDefaultSize
className="editor-post-schedule__dialog-toggle"
variant="tertiary"
onClick={ onToggle }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default function PostSwitchToDraftButton() {
return (
<>
<Button
__next40pxDefaultSize
className="editor-post-switch-to-draft"
onClick={ () => {
if ( ! isDisabled ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default function BlockThemeControl( { id } ) {
popoverProps={ POPOVER_PROPS }
focusOnMount
toggleProps={ {
__next40pxDefaultSize: true,
variant: 'tertiary',
} }
label={ __( 'Template options' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function PostTemplateToggle( { isOpen, onClick } ) {

return (
<Button
__next40pxDefaultSize
className="edit-post-post-template__toggle"
variant="tertiary"
aria-expanded={ isOpen }
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/post-trash/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default function PostTrash() {
return (
<>
<Button
__next40pxDefaultSize
className="editor-post-trash"
isDestructive
variant="secondary"
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/post-url/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function PostURLToggle( { isOpen, onClick } ) {
const label = usePostURLLabel();
return (
<Button
__next40pxDefaultSize
className="editor-post-url__panel-toggle"
variant="tertiary"
aria-expanded={ isOpen }
Expand Down

0 comments on commit 9010d45

Please sign in to comment.