-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
Numbered list and text not aligning when rendering #592
Comments
@rikinshah23 please provide a reproducible example; this example relies on unknown props. |
import React from 'react' const tagsStyles = { const classesStyles = { List bullets are not moving with text, please help me @jsamr |
Here's a minimal example. The baseline of the container does not line up with the baseline of the numbering. Seems that no style changes in tagsStyles can really affect the numbering, which is not intuitive or well documented (opinion). I was able to fix the li numbering to get the lineHeight css property only by using "renderersProps". So in the example, you would need to do all the changes to the :
|
This is my complete minimal sample, currently available at https://snack.expo.dev/@tom.a/numbered-list-and-text-not-aligning-when-rendering
I left the commented out ol/li styling because they don't do anything to the numbers even though intuitively that's what I would try to do to change their formatting. Unfortunately some editors (e.g. Tiptap) just add |
you can try p: { marginVertical: 0 } at tagsStyles. |
My issue is that when I give margin left to the li tag in list item then
number in case of ol list does not move with text.
…On Mon, May 15, 2023 at 2:32 PM Nguyễn Tiến Ánh ***@***.***> wrote:
you can try p: { marginVertical: 0 } at tagsStyles.
—
Reply to this email directly, view it on GitHub
<#592 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV2MNH5KIZNQMHT5BV7ZW3DXGHZ3HANCNFSM6AAAAAARUQ3FD4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
i have the same problem, do you know any solution? thanks |
Your solution works perfectly fine, thank you |
Decision Table
<yyy>
is not rendered”Good Faith Declaration
Description
Numbered list is always showing like this for me. Is there a prop or an example I can use to add some padding to the text may be?
React Native Information
RNRH Version
6.3.4
Tested Platforms
Reproduction Platforms
Minimal, Reproducible Example
Additional Notes
No response
The text was updated successfully, but these errors were encountered: