Skip to content

Commit 6b014ef

Browse files
committed
don't add automatic anchors for specific components
1 parent 366f5fb commit 6b014ef

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% if objects is not empty %}
2-
<div class="component--collapsibles" data-component="collapsibles">
2+
<div class="component--collapsibles" data-component="collapsibles" data-anchor="no">
33
{% for object in objects %}
44
<div>
55
<h3 data-heading="collapsibles">{% block title %}{% endblock title %}<span>{% block subtitle %}{% endblock subtitle %}</span></h3>
@@ -9,4 +9,4 @@
99
</div>
1010
{% endfor %}
1111
</div>
12-
{% endif %}
12+
{% endif %}

templates/components/evangelists.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="component component--evangelists">
1+
<div class="component component--evangelists" data-anchor="no">
22
{% if (title is defined and title) or (introduction is defined and introduction) %}
33
<div class="component--evangelists__text">
44
{% if (title is defined and title) %}

templates/components/groups_list.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="u-full-width component component--group-list">
1+
<div class="u-full-width component component--group-list" data-anchor="no">
22
<div class="l-center">
33
{% if (list_title is defined and list_title) or (list_introduction is defined and list_introduction) %}
44
<div class="component--group-list__intro">

templates/components/members.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="component component--members u-full-width">
1+
<div class="component component--members u-full-width" data-anchor="no">
22
<div class="l-center">
33
{% block membersgridintro %}
44
<h2 class="visuallyhidden">{{ "components.members.title"|trans({}, 'w3c_website_templates_bundle') }}</h2>

templates/components/styles/alumni.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="people-list">
1+
<div class="people-list" data-anchor="no">
22
{% for alumnus in alumni %}
33
<div class="l-sidebar card--user" id="{{ alumnus.slug }}">
44
<div class="alumni">

templates/components/styles/crosslinks.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<p>{{ crosslinks['text'] }}</p>
88
{% endblock %}
99
</div>
10-
<ul class="clean-list" role="presentation">
10+
<ul class="clean-list" role="presentation" data-anchor="no">
1111
{% for crosslink in crosslinks['links'] %}
1212
{{ include('@W3CWebsiteTemplates/components/styles/crosslink.html.twig', {'crosslink': crosslink}) }}
1313
{% endfor %}

templates/components/styles/notes.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{%- macro notes(type, title, notes) -%}
22
{% if (notes|length > 0) %}
33
<div class="l-box note note--{{ type }}" role="{{ type == 'error' ? 'alert' : 'status' }}" aria-labelledby="{{ type }}-summary-title" tabindex="-1"
4-
data-component="{{ type }}-summary">
4+
data-component="{{ type }}-summary" data-anchor="no">
55
<h2 id="{{ type }}-summary-title" class="txt-saturn">{{ title }}</h2>
66
<ul class="clean-list" role="list">
77
{% for note in notes %}

templates/components/styles/related-event-card.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="card card--event {{ entry|event_type }}" data-component="card">
1+
<div class="card card--event {{ entry|event_type }}" data-component="card" data-anchor="no">
22
<div class="card__text">
33
<h3 class="card__heading">
44
<a class="card__link" href="{{ entry.url }}">{{ entry.title }}</a>

0 commit comments

Comments
 (0)