Closed wheresrhys closed 10 years ago
These will need deciding before release (though not necessarily before development begins)
data-o-grid-col
would be more consistent with o-grid@1. data-o-grid-width
or data-o-grid-span
would be (respectively) more descriptive and more in line with other grid frameworks' terminologycol
doesn't work for me, it's not descriptive of what it does. sizing
is perfect, in my view, but I'd live with span
if everyone else dislikes sizing
.
On case, I think the l
vs 1
vs |
problem is important enough to use uppercase, I'm afraid.
col
doesn't work for me either.
If we added a few other common grid features like push, pull and center what would that look like?
<div data-o-grid-sizing="6 S12" data-o-grid-pull="6"></div>
or
<div data-o-grid-sizing="6 S12" data-o-grid-pull="1" data-o-grid-center="center"></div>
Having something like data-o-grid-col-sizing
and data-o-grid-col-pull
would be long.
Also if we needed data attributes on the rows (as well as columns) then we'd want descriptive names there too.
I prefer span
as the terminology is more familiar and descriptive IMO. Maybe colspan
as a compromise? That would leave room for rowspan
.
On case, I think the l vs 1 vs | problem is important enough to use uppercase, I'm afraid.
+1
Implemented in branch v2 with colspan
, which I think is a good choice as the terminology is familiar from tables and it won't get confusing if in future other things on the grid need to be sized.
Can change it before releasing the 2.0.0 tag if required
Crikey it's gone all 1999 in here.
Final call for what we should name the attribute responsible for column widths as v2 is ready for release. If you have an opinion please +1 your preference out of the following:
@triblondon @kavanagh @dansearle-ft @matthew-andrews @richard-still-ft @markstephens
+1 for colspan I feel the other two could be taken with different meaning out of context...
Not overly fussed. All of the options work for me.
I like sizing because colspan gives me flashbacks to 1998, but I'll be happy with colspan or span if there's a majority in favour.
spacer gifs? :-)
+1 for colspan. It's unambiguous.
I'm glad someone else around here is old enough to remember spacer gifs.
Fine, go with colspan.
When all the cool kids use our grid library they'll be blissfully unaware of their forebears' toil with colspan. And the veterans will be happy we overwrote the meaning of a dirtied word.
colspan it is then. I'll hopefully get cell-spacing
in for 2.1
As discussed here column widths should be specified using a data attribute