-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add button text labels to site editor. #38317
Conversation
Size Change: +1.36 kB (0%) Total Size: 1.21 MB
ℹ️ View Unchanged
|
Nice, thank you! Here's a quick visual of toggling the option from the more menu: You mention this with #24370, we need to unify the options interface across post and site editor. I would dare to say it's likely that if you want text-only buttons in the post editor, you likely want it in the site editor as well. That's also the biggest challenge to this PR; it takes one of the options you access in the Preferences modal in the post editor, and puts it right at the top in the site editor, making it unclear why that option is there, but all the other options aren't, such as "Show most used blocks", "Contain text cursor inside blocks", "Reduce the interface", etc. Can we bring the preferences modal to the site editor? |
Thanks for the feedback @jasmussen , it does make sense to have consistency in the preferences modal. There's work in progress in #34195 and #34191 to unify the modal so we might want to wait on that to be done, though if there's anything I can improve in the meantime with regards to the button text, spacing etc. let me know! |
This is a good start and can be merged separately from the Preferences modal. @tellthemachines, it looks like we need to update a few Unit Tests. I will leave design feedback to @jasmussen 🙇 |
With #38873 in progress to try and unify the Options menu across editors, I'm hoping to get back on this PR soon. Unifying the preference interface won't solve all our problems though; if
we also need to think about how potential cross-editor settings will work. #24370 kicked off the discussion on that, but there's still an important UX question that remains to be answered: where would cross-editor settings live? If a setting is within an editor, as the ones in the Options menu are, it seems weird for it to have an effect on other editors. So where should global settings go? In the general site settings? Would be great to have some design thoughts on this, @jasmussen ! |
Indeed that's a good point. Perhaps this setting isn't cross-editor after all: if we (as is probably likely) continue to have two separate editors, I might want a reduced UI with no breadcrumb bar in the post editor, but not in the site editor. There might be additional configurations I'd want to tailor to each. Especially if it can unblock this PR, it seems fine to making the change local just to one editor, have it live in the same place in both. That would also give some time for design explorations for where global settings could live, which to my current instinct would be the global Settings > Writing interface, which then comes with its own set of questions. |
e6b09db
to
1d3f3c4
Compare
Ok I rebased and updated to add the toggle inside the new preferences modal 😄 Labels on the header are not quite right yet, they look a bit squished at 900px: On the post editor, when text labels are enabled the left hand side toolbar only shows at 1280px. I'm tempted to do the same here, except the List View is more of an essential tool in the site editor, so it's not great to hide it away. Any thoughts on this? Cc. @jasmussen |
Ok, I fiddled a bit with the button margins and paddings, and I think we can get away with not reducing the font size. I'd rather not reduce it if we can possibly avoid it, because it gets super hard to read, and zooming in on a laptop screen can easily end up with all the buttons being hid as we hit the smaller breakpoint 😅 |
Given this one brings parity with what exists in the post editor, it seems fine to land given a technical review.
Of course good to exhaust other options. Though I'd still keep it as an option: a 12px font size might be preferrable over a cropped block toolbar in terms of picking between tradeoffs. |
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.
Feature tests well, and code changes look good to me 👍
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.
* Add button text labels to site editor. * Move preference into modal. * Update tests. * Update feature selector. * Adjust margins and paddings on header buttons.
Description
Partially addresses #15311. Like #24234, #24304 and #26135 did for the post editor, this adds an option to the site editor to show text labels instead of icons on interface buttons.
This might also be a good time to bring up #24370 again, as it would be convenient to be able to set this option across all editors at once.
Testing Instructions
Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist:
*.native.js
files for terms that need renaming or removal).