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

Handle units when converting between CSS and JS object #28

Closed
wants to merge 1 commit into from

Conversation

satya164
Copy link

@satya164 satya164 commented Oct 7, 2018

Most CSS-in-JS libraries supporting object format support writing values without unit and assume pixel.
For example, 'width: 200px' can be written as 'width: 200'.

Right now I have to manually do it after using the editor plugin. This commit will automate it.

Most CSS-in-JS libraries supporting object format support writing values without unit and assume pixel.
For example, 'width: 200px' can be written as 'width: 200'.

Right now I have to manually do it after using the editor plugin. This commit will automate it.
@xndyz
Copy link

xndyz commented Feb 9, 2019

Can we merge this @ansumanshah? This is a really useful feature since many people prefer object styles over template strings.

@xndyz xndyz mentioned this pull request Feb 9, 2019
@omasback
Copy link

I would love this feature! Maybe make it an optional setting? Please merge!

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

Successfully merging this pull request may close these issues.

3 participants