Skip to content

Commit

Permalink
Try alternate list item jump fix. (#12941)
Browse files Browse the repository at this point in the history
* 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".
  • Loading branch information
jasmussen authored Feb 1, 2019
1 parent c20a644 commit 532ed5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor/src/editor-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ ul,
ol {
margin: 0;
padding: 0;

li {
// This overrides a bottom margin globally applied to list items in wp-admin.
margin-bottom: initial;
}
}

ul {
Expand Down

0 comments on commit 532ed5f

Please sign in to comment.