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

How to not apply parent tag's style to child ones? #137

Open
abayken opened this issue Nov 17, 2021 · 0 comments
Open

How to not apply parent tag's style to child ones? #137

abayken opened this issue Nov 17, 2021 · 0 comments

Comments

@abayken
Copy link

abayken commented Nov 17, 2021

I have following html:

    <li> Some item <strong>here</strong></li> 
    

    I add style to li tag to give them bullet points:

    let li = Style {
                $0.textTransforms = [
                    TextTransform.custom {
                        return "• " + $0
                    }
                ]
            }
    

    Because of li is the parent for tags inside of it, that text transformation is also applying to strong tag. So my strong tag having a bullet point. How to avoid it?

    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