From 8a3fab10248ce5a63643bc442ccf42ea79c6bf32 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Wed, 3 Jan 2024 14:07:07 +0530 Subject: [PATCH] chore: fix checklist indentation jumping --- .../Components/SuperEditor/Lexical/Theme/lists.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme/lists.scss b/packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme/lists.scss index 188b50444..dbba838dd 100644 --- a/packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme/lists.scss +++ b/packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme/lists.scss @@ -35,6 +35,13 @@ margin-left: 16px; list-style-position: outside; + // Fix indentation for checklists + // Lexical doesn't support setting a class specifically for checklists at the moment + // so we use the has selector to see if the items are check list items + &:has(> [aria-checked]) { + margin-left: 0; + } + &.Lexical__rtl { margin-left: 0; margin-right: 16px;