Skip to content

parse css blocks to objects in attrs - #509

Closed
sergioramos wants to merge 1 commit into
styled-components:v2from
sergioramos:attrs-with-style
Closed

sergioramos wants to merge 1 commit into
styled-components:v2from
sergioramos:attrs-with-style

Conversation

@sergioramos

Copy link
Copy Markdown

related: #371

@mxstbr-bot

mxstbr-bot commented Feb 16, 2017 •

Copy link
Copy Markdown
Warnings
⚠️ ❗ Big PR
⚠️ There are library changes, but not tests. That's OK as long as you're refactoring existing code

Generated by 🚫 dangerJS

@geelen

geelen commented Feb 17, 2017

Copy link
Copy Markdown
Member

This is looking good, but I have a quick q (and it might just be because I'm on my phone and missed something)

Does this support passing css-as-inline-styles to anything other than the style attr?

@sergioramos

Copy link
Copy Markdown
Author

Does this support passing css-as-inline-styles to anything other than the style attr?

No, it doesn't 😕

@geelen

geelen commented Feb 22, 2017

Copy link
Copy Markdown
Member

Hey @ramitos I think if we can target arbitrary attributes with this it'll be good to go. Any chance you can add that?

@sergioramos

Copy link
Copy Markdown
Author

@geelen I just pushed a solution that - although not pretty - seems to work. However, I'm not comfortable with Flow enough to create a type that extends Array with a property. Any hints?

@geelen geelen mentioned this pull request Apr 1, 2017
@geelen

geelen commented Apr 1, 2017

Copy link
Copy Markdown
Member

Closed in favour of #636.

@geelen geelen closed this Apr 1, 2017
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