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

List overflow causes vertical spacing between blocks #390

Open
VitorCodes opened this issue Mar 21, 2024 · 0 comments
Open

List overflow causes vertical spacing between blocks #390

VitorCodes opened this issue Mar 21, 2024 · 0 comments

Comments

@VitorCodes
Copy link

When setting a text's container padding to 0, if adding list elements such as bullet or numbered lists, these will overflow the main container element and add extra spaces between sibling blocks due to <ul> and <ol>'s default margin top and bottom values (1 rem).

So, if the text block, say A, ends with plain text, the block B will be placed right under it. Whereas if the last element in a text block is a list, block B will have a vertical spacing from block A (Check images below)

The API doesn't expose anything to manage this so, is this something that could be fixed?

Screenshot 2024-03-20 at 21 49 02 Screenshot 2024-03-20 at 21 50 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant