Skip to content

Commit fa38dfc

Browse files
authored
fix(richtext-lexical): indent regression (#8138)
## Description Fixes #8038, which was broken in #7817 I'm not entirely sure if this change violates the original intent of the "base" utility, which from what I understand was introduced for scalability reasons. Either way, I think it's a good idea to keep the indent at 40px all the time. The reason for this is that browsers use 40px as the indentation setting for lists, and using that setting the indented paragraphs and headings match the lists. See facebook/lexical#4025 - [x] I have read and understand the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository. ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## Checklist: - [x] I have added tests that prove my fix is effective or that my feature works - [x] Existing test suite passes locally with my changes - [x] I have made corresponding changes to the documentation
1 parent 8e1a5c8 commit fa38dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/richtext-lexical/src/lexical/theme/EditorTheme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}
8383

8484
&__indent {
85-
--lexical-indent-base-value: base(2);
85+
--lexical-indent-base-value: 40px;
8686
}
8787

8888
&__textBold {

0 commit comments

Comments
 (0)