Skip to content

Commit d9877b6

Browse files
authored
Merge pull request #2215 from tf/justified-center-ragged-list-2
Fix display of justified lists in center ragged lists in editor
2 parents e4e2b11 + 6f7d555 commit d9877b6

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

entry_types/scrolled/package/src/contentElements/textBlock/TextBlock.module.css

+3-2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
text-align: center;
121121
}
122122

123-
.layout-centerRagged {
124-
--editable-text-list-style-position: inside;
123+
.layout-centerRagged ol,
124+
.layout-centerRagged ul {
125+
list-style-position: inside;
125126
}

entry_types/scrolled/package/src/frontend/EditableText.module.css

+2-6
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@
88
white-space: pre-line;
99
}
1010

11-
.root ul,
12-
.root ol {
13-
list-style-position: var(--editable-text-list-style-position);
14-
}
15-
1611
.justify {
1712
text-align: justify;
1813
}
1914

2015
ul.justify,
2116
ol.justify {
22-
list-style-position: outside;
17+
/* Override style set by center-ragged text block */
18+
list-style-position: outside !important;
2319
}
2420

2521
.light {

0 commit comments

Comments
 (0)