Skip to content

Commit

Permalink
Style nested <ul>s with circles instead of normal bullets (#10358)
Browse files Browse the repository at this point in the history
* Style nested <ul>s with circles instead of normal bullets

* Move the list style override for galleries into its own styles
  • Loading branch information
chrisvanpatten committed Oct 8, 2018
1 parent f02c054 commit 69ced17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/block-library/src/gallery/editor.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Override the default list style type _only in the editor_
// to avoid :not() selector specificity issues.
// See https://github.com/WordPress/gutenberg/pull/10358
ul.wp-block-gallery li {
list-style-type: none;
}

.blocks-gallery-item {

// Hide the focus outline that otherwise briefly appears when selecting a block.
Expand Down
7 changes: 6 additions & 1 deletion packages/editor/src/editor-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ ol {
padding: 0;
}

ul:not(.wp-block-gallery) {
ul {
list-style-type: disc;
}

ol {
list-style-type: decimal;
}

ul ul,
ol ul {
list-style-type: circle;
}

0 comments on commit 69ced17

Please sign in to comment.