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

replace 'width:100%' with 'marginHorizontal' #80

Closed
wants to merge 4 commits into from

Conversation

runryan
Copy link

@runryan runryan commented Jun 10, 2019

When I use Line and Placeholder components, I find they are hard to custom their width due to width: 100% limitation. Sometimes we just tell a component its marginHorizontal to calculate its width automatically. So I suggest replacing 'width: 100%' with 'marginHorizontal' to make styles more flexible.

…its width automatically. So I suggest removing "width: 100%" property of line and placeholder. I give a useDefaultWidth property with default value 'true' instead. Now style of line and placeholder become more flexible.
…its width automatically. So I suggest removing "width: 100%" property of line and placeholder. I give a useDefaultWidth property with default value 'true' instead. Now style of line and placeholder become more flexible.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 85.606% when pulling 2c7326b on rnpartner:master into 7bc174b on mfrachet:master.

@mfrachet
Copy link
Owner

For a DX purpose, I'm not sure it's easier to rely on a marginRight things instead of the line of the component 🤔

Can you provide a snack reproduction of what gets you in trouble? Maybe we can adjust a bit and do it in another manner? 😊

@mfrachet
Copy link
Owner

mfrachet commented Jul 9, 2019

I close this for now, feel free to answer. Thanks for the job by the way 😊

@mfrachet mfrachet closed this Jul 9, 2019
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.

None yet

4 participants