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

Add paddingHorizontal, paddingVertical, etc #383

Open
dmnd opened this issue Sep 4, 2019 · 0 comments
Open

Add paddingHorizontal, paddingVertical, etc #383

dmnd opened this issue Sep 4, 2019 · 0 comments

Comments

@dmnd
Copy link

dmnd commented Sep 4, 2019

React Native has paddingHorizontal, paddingVertical, etc which makes the lack of CSS shorthand less painful.

Aphrodite's style API is already extremely similar to React Native. I'm not sure if that was a design goal, but if so, I think it makes sense to add these extra conveniences to Aphrodite too. It makes Aphrodite less surprising.

See also some previous discussion in #36. That was closed because webapp has a padding mixin. That fine for KA, but I think Aphrodite could benefit by having something built in.

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

1 participant