Skip to content

simple inline styles#7

Open
athanclark wants to merge 2 commits into
dowjones:masterfrom
athanclark:inline-styles
Open

simple inline styles#7
athanclark wants to merge 2 commits into
dowjones:masterfrom
athanclark:inline-styles

Conversation

@athanclark
Copy link
Copy Markdown

Hi there, I really like the feel this library gives me for designing grids, but I'd like more control over each generated element. I really like using inline styles for react components - it keeps the styling tightly coupled with the view, which I think is a good thing (for my use case at least). Would you be willing to give this freedom? If not, would you consider a height-based system? I'm not sure if you'd need to duplicate all of your width-based work in this other dimension (possibly squaring the work you need to do :P) or if we could simply hard-code some kind of fixed height. Either way, I think it would be useful.

@athanclark
Copy link
Copy Markdown
Author

After using the build in a private registry, I can confirm that this works as expected :)

@skiano
Copy link
Copy Markdown
Contributor

skiano commented Feb 22, 2016

Thanks for adding support for inline styles! I think that makes perfect sense. As for the height ideas, I am curious to know more what you are thinking about that. My instinct was that most people who would like this grid wouldn't be trying to control height that much (but it sounds like I may have missed the mark a bit).

Also, I think we should add unit tests to make sure the styles get passed through, just to make sure future changes don't remove your work. Would you be willing to add the tests? or should I take a look?

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.

2 participants