Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply 40px across summary panel. #58730

Merged
merged 2 commits into from
Feb 9, 2024
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
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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could potentially remove this. It only seems to exist for cases where the row doesn't include a control/button, which doesn't seem a likely occurrence?

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
Loading