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

Values for the non-standard properties being set as numbers becomes as string with px concatenated in output #381

Open
ltclmbdev opened this issue May 17, 2018 · 4 comments

Comments

@ltclmbdev
Copy link

so the next code:

className={`
    no-underline black db overflow-hidden
    ${css({
        display: '-webkit-box',
        '-webkit-line-clamp': 2,
        '-webkit-box-orient': 'vertical',
        [bpMinSM]: {
            '-webkit-line-clamp': 1,
         },
     })}
`}

outputs to:

    display: -webkit-box;
    -webkit-line-clamp: 2px;
    -webkit-box-orient: vertical;

123

Which is not correct for sure (because of px concatenated).

Am I doing something wrong?

@bot19
Copy link

bot19 commented Jan 23, 2020

having the same issue with z-index:
className={css({ "z-index": 11000 })}

Also tried it with "11000" - still same issue.

@khamiltonuk
Copy link

We had the same problem and put it directly on the element

<p style={{-webkit-line-clamp’: ‘2’ }}>
          "hello mum "
</p>

I am sure there must be a better solution, but leaving this here to help anyone else,

@khamiltonuk
Copy link

similar to #388

@eatoncns
Copy link

eatoncns commented Oct 1, 2020

Giving this a bump as I have also encountered the problem with z-index. In case anyone else hits this a key of zIndex works fine

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

4 participants