Skip to content
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

Style nested <ul>s with circles instead of normal bullets #10358

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}