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

Change default indent to 40px #4025

Merged
merged 3 commits into from
Mar 10, 2023

Conversation

GermanJablo
Copy link
Contributor

40px would be a better default because that's what browsers use for lists.
Indentations in paragraphs, headings, etc, would match that of the lists, and converting the nodes would not generate a strange displacement.

https://www.loom.com/share/6443d73269d04769bd88c00c8f1b973b

You may not see a perfect match with the list indents in the playground, because it's using some styles like list-style-position: inside.
Issue covered here: #3999

@vercel
Copy link

vercel bot commented Mar 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
lexical ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 10, 2023 at 0:22AM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 10, 2023 at 0:22AM (UTC)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 3, 2023
@thegreatercurve
Copy link
Contributor

@egonbolton Thanks for the contribution! I'm on board with this change, even if we might initially encounter some issues with nested lists on smaller view ports. I think aiming for browser consistency though is a decent aim though.

Mind updating the failing E2Es and I can merge?

@GermanJablo
Copy link
Contributor Author

Cool! This is done :)

@thegreatercurve
Copy link
Contributor

@egonbolton Sorry, I know this is annoying, but do you mind fixing the merge conflicts and then I can merge?

@thegreatercurve thegreatercurve merged commit fc2d216 into facebook:main Mar 10, 2023
@GermanJablo GermanJablo deleted the default-indent branch March 11, 2023 00:47
@zurfyx zurfyx mentioned this pull request Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants