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

Some styles not added to rendered HTML #538

Open
bonzaiferroni opened this issue Sep 9, 2024 · 2 comments
Open

Some styles not added to rendered HTML #538

bonzaiferroni opened this issue Sep 9, 2024 · 2 comments

Comments

@bonzaiferroni
Copy link

I've been trying to assign the flex-grow style like this:

div("peanut butter jelly time") {
    background = Background(Color("green"))
    fontSize = 32.px
    flexGrow = 1
    fontFamily = "Times New Roman"
}

expecting a css property of flex-grow = 1; in the element that gets rendered. It doesn't appear to have that property:

<div style="background: green; font-size: 32px; font-family: Times New Roman;">peanut butter jelly time</div>

This appears to be the case for flex-shrink and order but not other properties I tried.

@rjaros
Copy link
Owner

rjaros commented Oct 16, 2024

I can't reproduce the problem. All three properties are working fine for me.
Which version of KVision do you use?

@rjaros
Copy link
Owner

rjaros commented Oct 17, 2024

Perhaps your browser simply does not display these properties because they are not active in this context. You also need to add display = Display.FLEX for them to work.

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

2 participants