SassDoc / sassdoc

Release the docs!
http://sassdoc.com
MIT License
1.41k stars 56 forks source link

Using @require with variable maps #497

Closed JayyajGH closed 7 years ago

JayyajGH commented 7 years ago

If I define a variable map like:

$opacity: ( 'light': .8, 'dark': .4 );

and then @require that in a function with the type specified then sassdoc errors.

Against a function called color with the following: /// @require {variable} opacity The error is: [WARNING] Item color requires variable from type function but this item doesn't exist.

With: /// @require {variable} $opacity-options The error is: TypeError: Cannot read property '1' of null

If you use the require without a type then it works: /// @require $opacity-options