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

content property: empty string (" ") becomes "px" #350

Open
sdgluck opened this issue Jan 3, 2018 · 1 comment
Open

content property: empty string (" ") becomes "px" #350

sdgluck opened this issue Jan 3, 2018 · 1 comment

Comments

@sdgluck
Copy link

sdgluck commented Jan 3, 2018

I am trying to create a keyframe animation that looks like this:

const cursorBlinkAnim = keyframes({
  '0%': {content: '_'},
  '100%': {content: ' '}
})

But when compiled by glamor the CSS becomes:

@keyframes animation_wzvti9{0%{content:_;}100%{content:px;}}

Using any alternative whitespace character has similar behaviour.

Just in case it's important, I am using glamorous too.

Any ideas?

@martinpalmieri
Copy link

Hi @sdgluck ,
Maybe it's too late but today I had the very same issue and I resolved it by using backticks/backquotes like this:

content: `''`,

Hope it helps.

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