-
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
Remove the post permalink UI from the post title #21099
Conversation
Size Change: -2.25 kB (0%) Total Size: 857 kB
ℹ️ View Unchanged
|
Thanks for this. This is what I see: I'm very happy to see so much red code. That's good. Removing the permalink UI from the title block is also fine, because:
I would have liked to see the permalink UI also be in the pre-publish dialog. But this PR doesn't preclude that from happening. So high level, 👍 👍 on this. However, there are some issues with the responsive breakpoints: That's TwentyNineteen, but that theme does not appear to be at fault, as the same issues appear when no editor style is loaded: I have a bit on my plate today, and toddlers to juggle, but if this isn't easy to fix, I can help out maybe tomorrow. |
@jasmussen I'll look at the responsive issues, we might not have the same 2019 styles though as It's always left-aligned for me. |
Yep that left alignment has been fixed in the RC release but not 5.3 |
I think I fixed the issue in 4ae1990 |
It looks like the removed component was never part of the public API, that's good 👍 |
The recent change appears to have messed a bit with the full-width styles, which I believe apply negative margin to account for the padding you removed. I think it's good to remove that padding, it has to be at some point. |
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 tests well for me. I tested fullwide images in TwentyTwenty and a theme that doesn't load editor styles, and things behave well. I'm loving how much code we can remove.
TwentyNineteen has an issue with fullwide images, but that appears to be the case beyond this PR. Let's consider creating a trac ticket for it.
d3b2c36
to
df3e79a
Compare
Oh, thanks! This is so much better. 👍 |
closes #5494
This PR removes the Post Permalink UI from the Post Title as suggested in #5494
At the same time, it simplifies the DOM and styles for the post title a lot.
Notes
In 2019, you'll notice a bug in the PostTitle (not centered properly) but I believe this is because the editor styles are targetting these internal classNames while ideally they shouldn't. cc @kjellr
I tried keeping the old classNames to reduce the scope of the breakage and and added "Needs dev note".