Skip to content

Commit

Permalink
Merge pull request #840 from City-of-Helsinki/UHF-9321
Browse files Browse the repository at this point in the history
UHF-9321 Card tag style fix
  • Loading branch information
teroelonen authored Dec 4, 2023
2 parents 9035d22 + 9b28494 commit d9c1923
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/js/district-and-project-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/job-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/linkedevents.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/news-archive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/school-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/react/common/Tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function Tags({ tags, isInteractive, langAttribute }: TagsProps): JSX.Ele

return (
<section
className="content-tags"
className="content-tags content-tags--card"
aria-label={
Drupal.t('Tags', {}, { context: 'Label for screen reader software users explaining that this is a list of tags related to this page.' })
}>
Expand Down
2 changes: 1 addition & 1 deletion templates/component/card.twig
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

{% if card_tags %}
<div class="card__tags">
{% embed '@hdbt/misc/tag-list.twig' with { tags: card_tags, addSpan: true } %}
{% embed '@hdbt/misc/tag-list.twig' with { tags: card_tags, addSpan: true, tag_container_class: ' content-tags--card' } %}
{% endembed %}
</div>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions templates/paragraphs/paragraph--news-list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
}
%}
{% block component_tags %}
{% include "@hdbt/misc/news-tags.twig" with
{% include "@hdbt/misc/news-tags.twig" with
{
tag_container_class: 'component__tags',
tag_container_class: 'content-tags--card component__tags',
tags: content.field_helfi_news_groups,
neighbourhoods: content.field_helfi_news_tags,
groups: content.field_helfi_news_neighbourhoods
Expand Down

0 comments on commit d9c1923

Please sign in to comment.