diff --git a/.storybook/storybook.scss b/.storybook/storybook.scss index 6aa1c88c..d6dff1f0 100644 --- a/.storybook/storybook.scss +++ b/.storybook/storybook.scss @@ -182,7 +182,7 @@ } &__block { - width: #{math.div(100%, 6)}; + // width: #{math.div(100%, 6)}; padding: 1rem; display: table-cell; @@ -234,14 +234,14 @@ } } - .tna-chip { - margin: 1rem 0; + .tna-chip-list { + margin-top: 1rem; - display: inline-block; + flex-wrap: nowrap; } .fa-solid { - margin-left: 0.5rem; + // margin-left: 0.5rem; &.light-icon { @include colour.colour-font("icon-light", true); diff --git a/src/nationalarchives/components/button/template.njk b/src/nationalarchives/components/button/template.njk index 1cd06f28..700f100c 100644 --- a/src/nationalarchives/components/button/template.njk +++ b/src/nationalarchives/components/button/template.njk @@ -18,10 +18,10 @@ {%- set buttonClasses = buttonClasses.concat('tna-button--icon-right') -%} {%- endif -%} <{{ 'button' if params.buttonElement else 'a' }}{%- if not params.buttonElement %} href="{{ params.href }}"{%- endif %} class="tna-button {{ buttonClasses | join(' ') }}"{%- if params.buttonElement %} type="{{ params.buttonType or 'button' }}"{% endif -%}{%- if params.title %} title="{{ params.title }}"{% endif %}{% for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}> - {%- if params.brandIcon %} + {%- if params.brandIcon -%} - {%- elseif params.icon %} + {% elseif params.icon -%} - {%- endif %} + {% endif -%} {{ params.text }} {{ 'button' if params.buttonElement else 'a' }}> diff --git a/src/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js b/src/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js index 7f4dd7b2..496a58e8 100644 --- a/src/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js +++ b/src/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js @@ -1395,9 +1395,19 @@ const CombinationsTemplate = () => { `${blockOutput}
Text / Dark / Light
+Text / Dark / Light /
-Chip
+