diff --git a/src/wmnds/components/button/_button.njk b/src/wmnds/components/button/_button.njk index 775205102..60fe55626 100644 --- a/src/wmnds/components/button/_button.njk +++ b/src/wmnds/components/button/_button.njk @@ -45,7 +45,7 @@ {{ _content }} {{ wmndsLoader({ - customClass: 'wmnds-btn__icon wmnds-btn__icon--right', + classes: 'wmnds-btn__icon wmnds-btn__icon--right', size: 'btn' }) }} diff --git a/src/wmnds/components/loader/_example.njk b/src/wmnds/components/loader/_example.njk new file mode 100644 index 000000000..e79d54fc9 --- /dev/null +++ b/src/wmnds/components/loader/_example.njk @@ -0,0 +1,10 @@ +{% raw %} +{% from "wmnds/components/loader/_loader.njk" import wmndsLoader %} + +{{ + wmndsLoader({ + size: "small", + classes: null + }) +}} +{% endraw %} \ No newline at end of file diff --git a/src/wmnds/components/loader/_loader.njk b/src/wmnds/components/loader/_loader.njk index 417e7210b..f25ae4ead 100644 --- a/src/wmnds/components/loader/_loader.njk +++ b/src/wmnds/components/loader/_loader.njk @@ -5,10 +5,10 @@ Only two size modifiers are 'large' and 'small' #} {% set size = " wmnds-loader--" + params.size if params.size %} {% set commentSize = params.size if params.size else "normal" %} -{% set customClass = " " + params.customClass if params.customClass %} {# Allows custom classes to be added to loader #} +{% set classes = " " + params.classes if params.classes %} {# Allows custom classes to be added to loader #} -