Skip to content

Commit

Permalink
Change actions for tna-button
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Dec 6, 2023
1 parent 44c0c91 commit e79f2e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Cookies class parameter `extraPolicies` moved to key inside the options object parameter
- Card actions are now buttons using `.tna-button`

### Deprecated
### Removed
Expand Down
2 changes: 0 additions & 2 deletions src/nationalarchives/components/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@
}

&__actions {
margin-top: 2rem;

order: 4;
}

Expand Down
4 changes: 2 additions & 2 deletions src/nationalarchives/components/card/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
{%- endif %}
</div>
{%- if params.actions %}
<div class="tna-card__actions">
<div class="tna-card__actions tna-button-group">
{%- for item in params.actions %}
<a href="{{ item.href }}" class="tna-card__action{% if params.hrefClasses %} {{ params.hrefClasses }}{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %} {%- for attribute, value in params.hrefAttributes %} {{ attribute }}="{{ value }}"{% endfor %}>
<a href="{{ item.href }}" class="tna-button{% if params.hrefClasses %} {{ params.hrefClasses }}{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %} {%- for attribute, value in params.hrefAttributes %} {{ attribute }}="{{ value }}"{% endfor %}>
{%- if item.brandIcon %}
<i class="fa-brands fa-fw fa-{{ item.brandIcon }}"></i>
{%- elseif item.icon %}
Expand Down

0 comments on commit e79f2e2

Please sign in to comment.