-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Make post meta row button treatment consistent #61954
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
I'm personally leaning towards not eliding. Not strongly. But so long as it's top aligned, and wraps using |
Size Change: -42 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
a282328 removes truncation but fixes alignment. I fear this will make the panel feel overwhemling in situations where there are several long labels, but I acknowledge those may be edge cases. It still fixes the underlying issue which is most important as we approach beta. |
Flaky tests detected in d570d65. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9313149576
|
Coming back to this one, and keeping in mind we need to make an initial call here, and then we can always revisit, I'd recommend we do this:
|
} | ||
|
||
.components-dropdown, | ||
.editor-post-author__panel-dropdown { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be better to be part of the post author component's styles and not part of post panel row.
This will need further investigation and is probably better handled separately. |
The failing tests seem unrelated to this PR 🤔 Perhaps @ntsekouras can take a look? 🙏 |
9d09693
to
d570d65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Tested, works.
Thanks all ❤️ |
Co-authored-by: jameskoster <[email protected]> Co-authored-by: ntsekouras <[email protected]> Co-authored-by: jasmussen <[email protected]>
Co-authored-by: jameskoster <[email protected]> Co-authored-by: ntsekouras <[email protected]> Co-authored-by: jasmussen <[email protected]>
Alternative to #61492 and #61703
What?
Apply the same treatment to all buttons in
.editor-post-panel__row-control
. Specifically; truncate to one line, and use a tooltip to display the full value where helpful (IE the date field).Why?
Currently button treatments are inconsistent and in some cases broken. Here's a comparison between trunk and this branch:
It's not uncommon for find long date strings, template names, slugs, author names etc. The UI should be better prepared to handle these scenarios.
Another option to try could be truncating to X number of lines so that details like the full date are always visible, but I prefer truncating to a single line as it keeps the panel neat. The full value is always accessible (either via tooltip, or by opening the associated panel).