Skip to content

Commit

Permalink
Post Summary Panel: Restore height:auto for toggle buttons (#65362)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: mirka <[email protected]>
  • Loading branch information
4 people authored Sep 17, 2024
1 parent fe276a9 commit 2943dd3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/components/post-panel-row/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
white-space: normal;
text-wrap: balance; // Fallback for Safari.
text-wrap: pretty;
height: auto;
min-height: $button-size-compact;
}

Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/post-status/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export default function PostStatus() {
focusOnMount
renderToggle={ ( { onToggle, isOpen } ) => (
<Button
className="editor-post-status__toggle"
variant="tertiary"
size="compact"
onClick={ onToggle }
Expand Down
5 changes: 5 additions & 0 deletions packages/editor/src/components/post-status/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
&.is-read-only {
padding: 6px 12px;
}

.editor-post-status__toggle.editor-post-status__toggle {
padding-top: $grid-unit-05;
padding-bottom: $grid-unit-05;
}
}

.editor-change-status__password-fieldset,
Expand Down

1 comment on commit 2943dd3

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in 2943dd3.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10904693707
📝 Reported issues:

Please sign in to comment.