-
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
List block: avoid "jump" when nesting a list item #12526
Comments
Good ticket. It is an easy fix. But given any fix for this will land in phase 2 country, I wonder if the real fix should happen upstream? I'm open to either way. |
I can't fix it upstream, for sentimental reasons 🙂 https://core.trac.wordpress.org/changeset/138 See also: |
Thank you for the deep dive! Maybe I'll fix it then :D THE TIME HAS COME! |
Hello there, I have find out solution for the blinking list element once create child hierarchic. Please check below css and update it to solve the issue. Code: Thanks, |
This PR is an alternative to #12590, and also fixes #12526. Props @Naerriel for initial work and inspiration. The different approach taken here is to embrace that we are applying a specific margin to our list items and overrides bleed from wp-admin. In doing so it moves these margins to the editor styles stylesheet, which is a more appropriate place for it.
This PR is an alternative to #12590, and also fixes #12526. Props @Naerriel for initial work and inspiration. The different approach taken here is to embrace that we are applying a specific margin to our list items and overrides bleed from wp-admin. In doing so it moves these margins to the editor styles stylesheet, which is a more appropriate place for it.
* Try alternate list item jump fix. This PR is an alternative to #12590, and also fixes #12526. Props @Naerriel for initial work and inspiration. The different approach taken here is to embrace that we are applying a specific margin to our list items and overrides bleed from wp-admin. In doing so it moves these margins to the editor styles stylesheet, which is a more appropriate place for it. * Move to "initial".
* Try alternate list item jump fix. This PR is an alternative to #12590, and also fixes #12526. Props @Naerriel for initial work and inspiration. The different approach taken here is to embrace that we are applying a specific margin to our list items and overrides bleed from wp-admin. In doing so it moves these margins to the editor styles stylesheet, which is a more appropriate place for it. * Move to "initial".
* Try alternate list item jump fix. This PR is an alternative to #12590, and also fixes #12526. Props @Naerriel for initial work and inspiration. The different approach taken here is to embrace that we are applying a specific margin to our list items and overrides bleed from wp-admin. In doing so it moves these margins to the editor styles stylesheet, which is a more appropriate place for it. * Move to "initial".
When nesting a list item, there's a visible vertical "jump" of the item (and the whole UI below it). Here's a GIF:
This happens because any
<li>
element in the WordPress admin inherits amargin-bottom: 6px;
fromcommon.css
. All that's needed to avoid this unpleasant "jump" is to reset the bottom margin to0
in the List blockeditor.scss
. /Cc @jasmussenThe text was updated successfully, but these errors were encountered: