Skip to content

Commit

Permalink
UHF-8530: Remove misused article elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkkimaagi committed Sep 14, 2023
1 parent 4aa65d5 commit c6c0869
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions templates/content/node--teaser.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@
{%
set classes = [
'content-card',
'content-card--' ~ node.bundle|clean_class,
node.isPromoted() ? 'content-card--promoted',
node.isSticky() ? 'content-card--sticky',
not node.isPublished() ? 'content-card--unpublished',
view_mode ? 'content-card--design-' ~ view_mode|clean_class,
]
%}

Expand All @@ -95,7 +91,7 @@
'rel': 'bookmark',
} %}

<article{{ attributes.addClass(classes) }}>
<div{{ attributes.addClass(classes) }}>

<div class="content-card__image">
{% if image.0 %}
Expand All @@ -107,4 +103,4 @@

{{ link(link_title, node_url, link_attributes) }}

</article>
</div>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% set service_channel_group_heading_level = service_channel_group_heading_level|default('h3') %}

<article class="service-channel service-channel--{{ type }}">
<div class="service-channel service-channel--{{ type }}">
<{{ service_channel_group_heading_level }} class="service-channel__type">
{{ label }}
</{{ service_channel_group_heading_level }}>
{{ content }}
</article>
</div>

0 comments on commit c6c0869

Please sign in to comment.