-
Notifications
You must be signed in to change notification settings - Fork 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
Rich Text: Remove overridden underline format #94244
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
👋 Hi @ntsekouras! IMHO, we should not remove the Underline button, but we might want to fix the missing shortcut instead, or even just remove the mention from our docs (since ⌘+U is not supported everywhere like, for example, ⌘+B). 🤔 There was a long discussion many years ago about the Underline and Justify formats (p7jreA-2em-p2#comment-1853), and the long story short, as far as I can remember, was:
Now, we all agree that they are poor web design choices. I believe Core shouldn't encourage poor web design choices, so it makes perfect sense to remove them from Core. However, Dotcom is a third-party consumer of Core. If our users want to Underline, we should give them the functionality. Let me know what you think! 🙂 |
Thanks for sharing the context! These discussions seem to have happened around 5 and half years ago. Do you think it's something still needed and widely used? Is there some kind of metric for its usage (although I wouldn't expect one to exist)? Could it be an opportunity to revisit the Actually I have already opened a PR to add the shortcut, but ideally we should align with core. |
Yeah, it all happened around when Core removed those formats. Back then, we only noticed the problem thanks to HEs telling us. My only concern (fairly minor, to be honest) is that users who underlined their content won't be able to de-underline it anymore without modifying the code. |
That's a valid concern, yes. There will be the shortcut, but they won't probably know about it, since it wasn't working before.. I'd also agree that it doesn't seem very likely, but you never know :)
This sounds like a good plan to me. It shouldn't be that impactful, and if it turns out to be, it's an easy one to revert. I'd leave the decision to you though or if you want to ping more people about it. |
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.
Works as advertised!
@ntsekouras, as discussed separately, please give a heads-up to Dotcom HEs about this change. It might not cause any problem, but in the off-chance, they should know who to contact and that it's easily reversible if needed. 🙂
f728067
to
8259c1b
Compare
Deployed r303912-wpcom |
Resolves: #94243
Resolves: #71631
From the issue:
Currently the
underline
format is overridden from core in order to add an option in block's toolbar formats dropdown.In core this button (alongside with the justify one) were removed years ago. TLDR;
Additionally, right now is buggy, because it doesn't handle the shortcuts for it (Command + U).
This PR removes the overridden format and aligns with core.
Steps to reproduce
Underline
format is not renderedPre-merge Checklist