Foundation-sites: [Flex Grid] $width variable in the method signature of the flex-grid-row() mixin is incorrect

Created on 13 Dec 2016  ·  4Comments  ·  Source: foundation/foundation-sites

The method signature for the flex-grid-row() method (link here) is:

@include flex-grid-row($behavior, $width, $columns, $base, $gutter) { }

However, after pulling in foundation-sites from npm (via yarn, like so: yarn add foundation-sites), I found that the variable is not named $width but rather, $size. Passing in a $width variable yielded an error mentioning that "no such variable $width exists."

Most helpful comment

Hi @aflashyrhetoric,

The name of the variable has been updated at #8570, and it a part of the v6.3.0 release. When you installed foundation-sites from npm, you probably installed a release candidate (v6.3.0-``rc1/rc2/rc3) while the documentation was still for v6.2.4.

@kball: It is not the issue here, but it make me think it could be useful to provide a documentation for _several_ versions ?

All 4 comments

Hi @aflashyrhetoric,

The name of the variable has been updated at #8570, and it a part of the v6.3.0 release. When you installed foundation-sites from npm, you probably installed a release candidate (v6.3.0-``rc1/rc2/rc3) while the documentation was still for v6.2.4.

@kball: It is not the issue here, but it make me think it could be useful to provide a documentation for _several_ versions ?

Ahhhh, I see. Thank you for the clarification @ncoden ! I like the way that Laravel does it, with a little dropdown in the top right. By the way, where was the code for the Sass Reference part of Foundation? I couldn't find it.

It is automatically generated with SassDoc (inside SuperCollider) from the comments above our Sass mixins and functions. For example for $size, see scss/grid/_flex-grid.scss:13

@ncoden definitely worth considering, though the logistics are somewhat tricky.

Was this page helpful?
0 / 5 - 0 ratings