Skip to content

Conversation

@abirchall
Copy link

@abirchall abirchall commented Aug 2, 2020

Fixes #101

This updates the style of list_item to match the format from https://www.markdownguide.org/basic-syntax/#lists-1
Namely, that list_item contents do not have vertical margin due to wrapped paragraph tokens.

If folks do want this behavior, they can override the style of *_list_icon or *_list_content.

This change has the added benefit of eliminating the need for platform specific *_list_icon margins and line heights. Horray!

iOS before:
list_ios_before

iOS after:
list_ios_after

Android before:
list_android_before

Android after:
list_android_after

This updates the style of `list_item` to match the format from https://www.markdownguide.org/basic-syntax/#lists-1
Namely, that `list_item` contents do not have vertical margin due to wrapped `paragraph` tokens.

If folks do want this behavior, they can override the style of `*_list_icon` or `*_list_content`.

This change has the added benefit of eliminating the need for platform specific `*_list_icon` margins and line heights. Horray!

iOS before:
<img width="433" alt="list_ios_before" src="https://user-images.githubusercontent.com/456610/89119457-90897600-d463-11ea-80a7-05ea6e86f4a5.png">

iOS after:
<img width="441" alt="list_ios_after" src="https://user-images.githubusercontent.com/456610/89119465-94b59380-d463-11ea-8f4c-161fbb43e6a6.png">

Android before:
<img width="356" alt="list_android_before" src="https://user-images.githubusercontent.com/456610/89119470-98491a80-d463-11ea-8415-31374584603d.png">

Android after:
<img width="357" alt="list_android_after" src="https://user-images.githubusercontent.com/456610/89119474-9c753800-d463-11ea-98d9-07b4e1585b44.png">
@iamacup iamacup merged commit f91ecb8 into iamacup:master Oct 16, 2020
@abirchall abirchall deleted the style_lists branch October 24, 2020 09:01
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

Successfully merging this pull request may close these issues.

Paragraph style is applied to list items

2 participants