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

Alternative column size notation? #70

Open
sgrove opened this issue Jul 1, 2015 · 1 comment
Open

Alternative column size notation? #70

sgrove opened this issue Jul 1, 2015 · 1 comment

Comments

@sgrove
Copy link

sgrove commented Jul 1, 2015

Currently g/col looks like:

(g/col {:xs 12 :sm 12 :md 12 :lg 12} "Some Text")

It would be nice to have an alternative (higher priority?) attributes, :sizes:

(g/col {:sizes [12 12 12 12]} "Some Text")

Even if all 4 sizes are required, it's still considerably more succinct.

Just a small thought I had while writing this out again and again!

@sritchie
Copy link
Contributor

sritchie commented Jul 4, 2015

Hey! Sorry to delay on this. I should have been on guard for comments from you. Stoked that you're using the project, @sgrove!

Yeah, looks good to me. Would love a pull req with a little utility function that expanded out :sizes into those other options. I guess you'd just add a nil for a missing size.

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

2 participants