Skip to content

Commit 50435dd

Browse files
committed
Merge branch 'main' into rm-dist
# Conflicts: # public/dist/assets/js/multiselect.js # public/dist/assets/js/multiselect.min.js # public/dist/assets/js/slider.js # public/dist/assets/js/slider.min.js # public/dist/assets/styles/core.css # public/dist/assets/styles/core.min.css
2 parents e1cd9b0 + 1599141 commit 50435dd

File tree

11 files changed

+32
-21
lines changed

11 files changed

+32
-21
lines changed

assets-src/js/multiselect-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const MultiselectButtons = function (selectEl, params) {
193193
ulCombo.setAttribute('aria-multiselectable', 'true');
194194
ulCombo.id = baseId + '-listbox';
195195
ulCombo.setAttribute('aria-labelledby', baseId + '-label');
196-
ulCombo.classList.add('combo-menu');
196+
ulCombo.classList.add('combo-menu', 'clean-list');
197197

198198
div.appendChild(divComboBox);
199199
div.appendChild(ulCombo);

assets-src/js/slider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ let contentSlider = (function () {
6666
function createControls() {
6767

6868
let controls = document.createElement('ul');
69-
controls.setAttribute('class', 'slider-controls');
69+
controls.setAttribute('class', 'clean-list slider-controls');
7070
controls.setAttribute('aria-label', controlsDescription);
7171
controls.innerHTML = '<li><button class="button button--ghost js-previous with-icon--larger" aria-label="' + previousSlide + '" style="padding:0.4375rem;"><svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 320 512" class="icon icon--larger" focusable="false" aria-hidden="true" width="1em" height="1em"><path class="chevron-left" d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"/><path class="chevron-right" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"/></svg></button></li>'
7272
+ '<li style="margin-top:0;margin-inline-start:0.25rem;"><button class="button button--ghost js-next with-icon--larger" aria-label="' + nextSlide + '" style="padding:0.4375rem;"><svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 320 512" class="icon icon--larger" focusable="false" aria-hidden="true" width="1em" height="1em"><path class="chevron-left" d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"/><path class="chevron-right" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"/></svg></button></li>';

assets-src/styles/sass/30-base/_lists.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ dl {
5555
font-weight: bold;
5656
}
5757

58+
dd {
59+
margin-inline-start: rem(40);
60+
}
61+
5862
dd + dt {
5963
margin-block-start: 0.5em;
6064
}
@@ -110,6 +114,7 @@ dl.grid {
110114
dd {
111115
grid-column-start: 2;
112116
grid-column-end: 3;
117+
margin-inline-start: 0;
113118
}
114119
}
115120
}

assets-src/styles/sass/50-core-components/_evangelists.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
padding-right: rem(24);
4646
}
4747

48+
.l-box {
49+
padding: rem(24);
50+
}
51+
4852
li + li {
4953
border-top: solid 1px #649bc5;
5054
}

assets-src/styles/sass/50-core-components/_family-series-list.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
\*------------------------------------*/
44

55
.family-grouping {
6-
padding-top: rem(40);
6+
padding-block-start: rem(28);
77
}
88

99
.family-grouping h2 + * {
10-
margin-top: 1rem;
10+
margin-block-start: 1rem;
1111
}

assets-src/styles/sass/80-templates/_technical-reports.scss

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
.hero {
1111
background-color: $white;
12-
margin-bottom: rem(20);
13-
padding-bottom: rem(40);
12+
margin-block-end: rem(20);
13+
padding-block-end: 0;
1414

1515
.l-box {
1616
background-color: #f3f3f6;
@@ -31,14 +31,20 @@
3131
background-color: $white;
3232
}
3333

34+
// Close visual gap between end of visible text and CSS-inserted colon caused by visuallyhidden <span>
35+
// Only works while there is a single visuallyhidden <span> as the last child in the <dt>
36+
.translation-list dt:has(span.visuallyhidden)::after {
37+
margin-inline-start: rem(-4);
38+
}
3439
}
3540

3641
.tr-list {
3742
.tr-list__item {
3843
@include stack(0.5em);
3944
@include txt-pluto;
40-
padding-bottom: rem(24);
41-
padding-top: rem(24);
45+
border-block-end: 1px solid $twiki-gray;
46+
padding-block-end: rem(8);
47+
padding-block-start: rem(20);
4248

4349
> * {
4450
max-width: rem(820);
@@ -49,21 +55,17 @@
4955
@include txt-mars;
5056
}
5157

52-
.tr-list__item + .tr-list__item {
53-
border-top: 1px solid $twiki-gray;
54-
}
55-
5658
.tr-list__item__header {
5759
@include stack;
5860
align-items: flex-start;
5961

6062
h3 {
61-
margin-bottom: 0;
62-
margin-top: rem(5);
63+
margin-block-end: 0;
64+
margin-block-start: rem(5);
6365
}
6466

6567
h3 + * {
66-
margin-top: 0;
68+
margin-block-start: 0;
6769
order: -1;
6870
}
6971
}

design-system-templates/components/tr-search-results-family.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<dd>Michael Cooper</dd>
5656
</div>
5757
<div class="translation-list">
58-
<dt>2 translations for Accessible Rich Internet Applications (WAI-ARIA) 1.0</dt>
58+
<dt>Translations <span class="visuallyhidden">for Accessible Rich Internet Applications (WAI-ARIA) 1.0</span></dt>
5959
<dd><a hreflang="ja" href="path/to/page"><span lang="ja">日本語</span></a></dd>
6060
<dd><a hreflang="hu-HU" href="path/to/page"><span lang="hu-HU">Magyar</span></a></dd>
6161
</div>

design-system-templates/components/tr-search-results-item-standard.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<dd>Michael Cooper</dd>
1919
</div>
2020
<div class="translation-list">
21-
<dt>2 translations for Accessible Rich Internet Applications (WAI-ARIA) 1.0</dt>
21+
<dt>Translations <span class="visuallyhidden">for Accessible Rich Internet Applications (WAI-ARIA) 1.0</span></dt>
2222
<dd><a hreflang="ja" href="path/to/page"><span lang="ja">日本語</span></a></dd>
2323
<dd><a hreflang="hu-HU" href="path/to/page"><span lang="hu-HU">Magyar</span></a></dd>
2424
</div>

templates/components/listings/people/user.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="l-sidebar card--user">
2-
<div id="{{ user.login }}">
2+
<div>
33
<div class="not-sidebar">
44
<div>
5-
<{{ heading|default('h3') }} class="{{ heading_class|default('txt-mars') }}">
5+
<{{ heading|default('h3') }} id="{{ user.login }}" class="{{ heading_class|default('txt-mars') }}" data-anchor="no">
66
{% block name %}
77
{% block given %}{{ user.given }}{% endblock%}
88
{% block family %}{{ user.family }}{% endblock %}

templates/components/listings/publications/tr_card.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{% block translations %}
3131
{% if spec.translations and spec.translations.translations|length > 0 %}
3232
<div class="translation-list">
33-
<dt>{{ spec.translations.translations|length }} translation{% if spec.translations.translations|length > 1 %}s{% endif %} for {{ spec.title }}</dt>
33+
<dt>Translation{% if spec.translations.translations|length > 1 %}s{% endif %} <span class="visuallyhidden">for {{ spec.title }}</span></dt>
3434
{% for t in spec.translations.translations|sort((a,b) => a.language <=> b.language) -%}
3535
<dd><a hreflang="{{ t.language|locale_to_bcp47 }}" href="{{ t.uri }}"><span lang="{{ t.language|locale_to_bcp47 }}">{{ t.language|locale_name(t.language) }}</span></a></dd>
3636
{% endfor -%}

0 commit comments

Comments
 (0)