Skip to content

Commit ccbd8af

Browse files
Make sure design system examples reflect templates changes
1 parent dc6245c commit ccbd8af

11 files changed

+23
-21
lines changed

design-system-templates/base.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{% block breadcrumbs %}
6969
{% endblock %}
7070

71-
<main id="main">
71+
<main id="main" {% block extra_main_attributes %}{% endblock %}>
7272
{% block content %}
7373
{% endblock %}
7474
</main>

design-system-templates/components/activity.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</div>
3838
</li>
3939
<li>
40-
<div class="card card--event workshop" data-component="card">
40+
<div class="card card--event workshop" data-component="card" data-anchor="no">
4141
<div class="card__text">
4242
<h3 class="card__heading"><a href="path/to/page" class="card__link">How do you want to pay?</a></h3>
4343
<p class="txt-pluto with-icon--before"><img class="icon" src="/dist/assets/svg/calendar.svg" width="15" height="15" alt aria-hidden="true" /> <time datetime="2020-11-15">15 November 2020</time></p>
@@ -46,7 +46,7 @@
4646
</div>
4747
</li>
4848
<li>
49-
<div class="card card--event talk" data-component="card">
49+
<div class="card card--event talk" data-component="card" data-anchor="no">
5050
<div class="card__text">
5151
<h3 class="card__heading"><a href="path/to/page" class="card__link">Cognitive AI - mimicking how we think</a></h3>
5252
<p class="txt-pluto with-icon--before"><img class="icon" src="/dist/assets/svg/calendar.svg" width="15" height="15" alt aria-hidden="true" /> <time datetime="2020-12-20">20 December 2020</time></p>

design-system-templates/components/card-link-multiple.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="event-list">
2-
<div class="card card--event meeting" data-component="card">
2+
<div class="card card--event meeting" data-component="card" data-anchor="no">
33
<div class="card__text">
44
<div class="l-sidebar">
55
<div>

design-system-templates/components/collapsible-containers.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="component--collapsibles" data-component="collapsibles">
1+
<div class="component--collapsibles" data-component="collapsibles" data-anchor="no">
22
<div>
33
<h3 data-heading="collapsibles">AI KR (Artificial Intelligence Knowledge Representation) <span>Community group</span></h3>
44
<div>

design-system-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
<div class="component--evangelists__text">
33
<h2 class="txt-earth">Need more information tailored to your organisation?</h2>
44
<p>Our Evangelists understand that every organisation is different! They represent W3C in various locations and are an extension of W3C's Business Development Team. They are responsible for identifying and recruiting new W3C Members, running local events, promoting W3C Training and fostering Sponsorship.</p>

design-system-templates/components/group-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
<div class="component--group-list__intro">
44
<h2>Active groups</h2>

design-system-templates/components/listings-events.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="event-list">
22

3-
<article class="card card--event meeting" data-component="card" aria-labelledby="event-1-date event-1-title">
3+
<article class="card card--event meeting" data-component="card" data-anchor="no" aria-labelledby="event-1-date event-1-title">
44
<div class="card__text">
55
<div class="l-sidebar">
66
<div>
@@ -26,7 +26,7 @@
2626
</div>
2727
</article>
2828

29-
<article class="card card--event workshop" data-component="card" aria-labelledby="event-2-date event-2-title">
29+
<article class="card card--event workshop" data-component="card" data-anchor="no" aria-labelledby="event-2-date event-2-title">
3030
<div class="card__text">
3131
<div class="l-sidebar">
3232
<div>
@@ -57,7 +57,7 @@
5757
</div>
5858
</article>
5959

60-
<article class="card card--event talk" data-component="card" aria-labelledby="event-3-date event-3-title">
60+
<article class="card card--event talk" data-component="card" data-anchor="no" aria-labelledby="event-3-date event-3-title">
6161
<div class="card__text">
6262
<div class="l-sidebar">
6363
<div>
@@ -88,7 +88,7 @@
8888
</div>
8989
</article>
9090

91-
<article class="l-sidebar card card--event conference" data-component="card" aria-labelledby="event-4-date event-4-title">
91+
<article class="l-sidebar card card--event conference" data-component="card" data-anchor="no" aria-labelledby="event-4-date event-4-title">
9292
<div>
9393
<div class="not-sidebar card__text">
9494
<div class="l-sidebar">

design-system-templates/components/listings-people.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

33
<div class="l-sidebar card--user">
44
<div>

design-system-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
<h2 class="visuallyhidden">W3C Members</h2>
44
<p>20 member organizations are involved in the web payment ecosystem, including:</p>
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
<div class="l-box note note--info" role="status">
2-
<h2 class="txt-saturn">Informative note heading</h2>
1+
<div class="l-box note note--info" role="status" aria-labelledby="unique-id-1" tabindex="-1" data-anchor="no">
2+
<h2 id="unique-id-1" class="txt-saturn">Informative note heading</h2>
33
<p>Group calendering is currently in beta-test. We encourage everyone to use it and report feedback and issues to its <a href="#1">dedicated GitHub repository</a>.</p>
44
</div>
55

6-
<div class="l-box note note--success" role="status">
7-
<h2 class="txt-saturn">Success note heading</h2>
6+
<div class="l-box note note--success" role="status" aria-labelledby="unique-id-2" tabindex="-1" data-anchor="no">
7+
<h2 id="unique-id-2" class="txt-saturn">Success note heading</h2>
88
<p>Main profile successfully updated.</p>
99
</div>
1010

11-
<div class="l-box note note--warning" role="status">
12-
<h2 class="txt-saturn">Warning note heading</h2>
11+
<div class="l-box note note--warning" role="status" aria-labelledby="unique-id-3" tabindex="-1" data-anchor="no">
12+
<h2 id="unique-id-3" class="txt-saturn">Warning note heading</h2>
1313
<p>We could not detect your affiliation based on your email address. Please select your affiliation below or <a href="#2">go back to use your corporate email address.</a></p>
1414
</div>
1515

16-
<div class="l-box note note--error" role="alert">
17-
<h2 class="txt-saturn">Error note heading</h2>
16+
<div class="l-box note note--error" role="alert" aria-labelledby="unique-id-4" tabindex="-1" data-anchor="no">
17+
<h2 id="unique-id-4" class="txt-saturn">Error note heading</h2>
1818
<p>There has been an error.</p>
1919
</div>

0 commit comments

Comments
 (0)