From a065a8426f9c81c89d353116e4dc45cb21ec1783 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 5 Jan 2023 17:18:07 -0800 Subject: [PATCH] fix: OL/UL inside of checkbox list is not styled correctly (#4648) closes #4635 --- shared/editor/components/Styles.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 73124c4dc..22e548af8 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -721,7 +721,6 @@ ol ol ol { } ul.checkbox_list { - list-style: none; padding: 0; margin-left: ${props.rtl ? "0" : "-24px"}; margin-right: ${props.rtl ? "-24px" : "0"}; @@ -741,12 +740,13 @@ ol li { } } -ul.checkbox_list li { +ul.checkbox_list > li { display: flex; + list-style: none; padding-${props.rtl ? "right" : "left"}: 24px; } -ul.checkbox_list li.checked > div > p { +ul.checkbox_list > li.checked > div > p { color: ${props.theme.textTertiary}; } @@ -785,7 +785,7 @@ ol li.ProseMirror-selectednode::after { display: none; } -ul.checkbox_list li::before { +ul.checkbox_list > li::before { ${props.rtl ? "right" : "left"}: 0; }