Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Fix text wrapping on hover
  • Loading branch information
noisysocks committed Jun 16, 2022
commit 2ee3ef05a29721c5eaf0c442d8fdd7f2667f0f11
10 changes: 10 additions & 0 deletions packages/edit-post/src/components/sidebar/post-schedule/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
text-align: left;
white-space: normal;
height: auto;

// This span is added by the Popover in Tooltip when no anchorRef is
// provided. We set its width to 0 so that it does not cause the button text
// to wrap to a new line when displaying the tooltip. A better fix would be
// to pass anchorRef and avoid the need for a span alltogether, which is
// what this PR allows us to do:
// https://github.com/WordPress/gutenberg/pull/41268.
span {
width: 0;
}
}

.edit-post-post-schedule__dialog .components-popover__content {
Expand Down