hr-design-system-handlebars 1.35.11 → 1.35.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/assets/index.css +3 -3
- package/dist/views/components/article/components/accordion/accordion.hbs +8 -4
- package/dist/views_static/components/article/components/accordion/accordion.hbs +8 -4
- package/package.json +1 -1
- package/src/stories/views/components/article/components/accordion/accordion.hbs +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v1.35.12 (Thu Aug 10 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- improve accessibility [#708](https://github.com/mumprod/hr-design-system-handlebars/pull/708) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v1.35.11 (Thu Aug 10 2023)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -3025,7 +3025,7 @@ video {
|
|
|
3025
3025
|
border-bottom-color: var(--color-secondary-ds);
|
|
3026
3026
|
}
|
|
3027
3027
|
.counter-reset {
|
|
3028
|
-
counter-reset:
|
|
3028
|
+
counter-reset: cnt1691691777157;
|
|
3029
3029
|
}
|
|
3030
3030
|
.hyphens-auto {
|
|
3031
3031
|
-webkit-hyphens: auto;
|
|
@@ -3260,7 +3260,7 @@ video {
|
|
|
3260
3260
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
3261
3261
|
}
|
|
3262
3262
|
.-ordered {
|
|
3263
|
-
counter-increment:
|
|
3263
|
+
counter-increment: cnt1691691777157 1;
|
|
3264
3264
|
}
|
|
3265
3265
|
.-ordered::before {
|
|
3266
3266
|
position: absolute;
|
|
@@ -3276,7 +3276,7 @@ video {
|
|
|
3276
3276
|
letter-spacing: .0125em;
|
|
3277
3277
|
--tw-text-opacity: 1;
|
|
3278
3278
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
3279
|
-
content: counter(
|
|
3279
|
+
content: counter(cnt1691691777157);
|
|
3280
3280
|
}
|
|
3281
3281
|
/*! ****************************/
|
|
3282
3282
|
/*! DataPolicy stuff */
|
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
{{#if this.isHeadline}}
|
|
7
7
|
{{#unless @first}}</div></div>{{/unless}}
|
|
8
8
|
<button type="button"
|
|
9
|
-
class="w-full text-left"
|
|
10
|
-
@click="selected !== {{nextRandom}} ? selected = {{getRandom}} : selected = null"
|
|
9
|
+
class="w-full text-left accordion link-focus"
|
|
10
|
+
@click="selected !== {{nextRandom}} ? (selected = {{getRandom}}, setTimeout(() => {if($el.getBoundingClientRect().top<0){$el.scrollIntoView({ block: 'start' })}}, 700)) : selected = null"
|
|
11
|
+
x-effect="$el.setAttribute('aria-label', selected == {{getRandom}} ? 'Abschnitt {{this.text}} schließen' : 'Abschnitt {{this.text}} öffnen');$el.setAttribute('aria-expanded', selected == {{getRandom}} ? 'true' : 'false')"
|
|
11
12
|
data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "Akkordeon::{{this.text}}-Link geklickt"}]}'
|
|
13
|
+
aria-controls="accordionItem{{getRandom}}"
|
|
12
14
|
>
|
|
13
15
|
<div class="flex flex-row justify-between border-t basis-10/12 content-evenly border-gray-alto">
|
|
14
|
-
<h3 :class="selected !== {{getRandom}} ? 'line-clamp-2' : ''" class="hover:text-toplineColor self-center my-3.5 text-base font-normal sm480:my-5 sm480:text-lg font-headingSerif">{{{this.text}}}</h3>
|
|
16
|
+
<h3 aria-hidden="true" :class="selected !== {{getRandom}} ? 'line-clamp-2' : ''" class="hover:text-toplineColor self-center my-3.5 text-base font-normal sm480:my-5 sm480:text-lg font-headingSerif">{{{this.text}}}</h3>
|
|
15
17
|
<span :class="selected == {{getRandom}} ? 'hidden' : ''">
|
|
16
18
|
{{> components/base/image/icon _icon="plus" _addClass="hover:text-toplineColor mx-5 mt-2 sm480:mt-4 w-8 h-8 fill-current"}}
|
|
17
19
|
</span>
|
|
@@ -20,8 +22,10 @@
|
|
|
20
22
|
</span>
|
|
21
23
|
</div>
|
|
22
24
|
</button>
|
|
23
|
-
<div
|
|
25
|
+
<div id="accordionItem{{getRandom}}"
|
|
26
|
+
class="relative w-full overflow-hidden transition-all duration-700 max-h-0"
|
|
24
27
|
style=""
|
|
28
|
+
:class="selected !== {{getRandom}} ? 'invisible' : ''"
|
|
25
29
|
x-ref="container{{getRandom}}"
|
|
26
30
|
x-bind:style="selected == {{getRandom}} ? 'max-height: ' + $refs.container{{getRandom}}.scrollHeight + 'px' : ''"
|
|
27
31
|
>
|
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
{{#if this.isHeadline}}
|
|
7
7
|
{{#unless @first}}</div></div>{{/unless}}
|
|
8
8
|
<button type="button"
|
|
9
|
-
class="w-full text-left"
|
|
10
|
-
@click="selected !== {{nextRandom}} ? selected = {{getRandom}} : selected = null"
|
|
9
|
+
class="w-full text-left accordion link-focus"
|
|
10
|
+
@click="selected !== {{nextRandom}} ? (selected = {{getRandom}}, setTimeout(() => {if($el.getBoundingClientRect().top<0){$el.scrollIntoView({ block: 'start' })}}, 700)) : selected = null"
|
|
11
|
+
x-effect="$el.setAttribute('aria-label', selected == {{getRandom}} ? 'Abschnitt {{this.text}} schließen' : 'Abschnitt {{this.text}} öffnen');$el.setAttribute('aria-expanded', selected == {{getRandom}} ? 'true' : 'false')"
|
|
11
12
|
data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "Akkordeon::{{this.text}}-Link geklickt"}]}'
|
|
13
|
+
aria-controls="accordionItem{{getRandom}}"
|
|
12
14
|
>
|
|
13
15
|
<div class="flex flex-row justify-between border-t basis-10/12 content-evenly border-gray-alto">
|
|
14
|
-
<h3 :class="selected !== {{getRandom}} ? 'line-clamp-2' : ''" class="hover:text-toplineColor self-center my-3.5 text-base font-normal sm480:my-5 sm480:text-lg font-headingSerif">{{{this.text}}}</h3>
|
|
16
|
+
<h3 aria-hidden="true" :class="selected !== {{getRandom}} ? 'line-clamp-2' : ''" class="hover:text-toplineColor self-center my-3.5 text-base font-normal sm480:my-5 sm480:text-lg font-headingSerif">{{{this.text}}}</h3>
|
|
15
17
|
<span :class="selected == {{getRandom}} ? 'hidden' : ''">
|
|
16
18
|
{{> components/base/image/icon _icon="plus" _addClass="hover:text-toplineColor mx-5 mt-2 sm480:mt-4 w-8 h-8 fill-current"}}
|
|
17
19
|
</span>
|
|
@@ -20,8 +22,10 @@
|
|
|
20
22
|
</span>
|
|
21
23
|
</div>
|
|
22
24
|
</button>
|
|
23
|
-
<div
|
|
25
|
+
<div id="accordionItem{{getRandom}}"
|
|
26
|
+
class="relative w-full overflow-hidden transition-all duration-700 max-h-0"
|
|
24
27
|
style=""
|
|
28
|
+
:class="selected !== {{getRandom}} ? 'invisible' : ''"
|
|
25
29
|
x-ref="container{{getRandom}}"
|
|
26
30
|
x-bind:style="selected == {{getRandom}} ? 'max-height: ' + $refs.container{{getRandom}}.scrollHeight + 'px' : ''"
|
|
27
31
|
>
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"repository": "https://github.com/szuelch/hr-design-system-handlebars",
|
|
9
|
-
"version": "1.35.
|
|
9
|
+
"version": "1.35.12",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
{{#if this.isHeadline}}
|
|
7
7
|
{{#unless @first}}</div></div>{{/unless}}
|
|
8
8
|
<button type="button"
|
|
9
|
-
class="w-full text-left"
|
|
10
|
-
@click="selected !== {{nextRandom}} ? selected = {{getRandom}} : selected = null"
|
|
9
|
+
class="w-full text-left accordion link-focus"
|
|
10
|
+
@click="selected !== {{nextRandom}} ? (selected = {{getRandom}}, setTimeout(() => {if($el.getBoundingClientRect().top<0){$el.scrollIntoView({ block: 'start' })}}, 700)) : selected = null"
|
|
11
|
+
x-effect="$el.setAttribute('aria-label', selected == {{getRandom}} ? 'Abschnitt {{this.text}} schließen' : 'Abschnitt {{this.text}} öffnen');$el.setAttribute('aria-expanded', selected == {{getRandom}} ? 'true' : 'false')"
|
|
11
12
|
data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "Akkordeon::{{this.text}}-Link geklickt"}]}'
|
|
13
|
+
aria-controls="accordionItem{{getRandom}}"
|
|
12
14
|
>
|
|
13
15
|
<div class="flex flex-row justify-between border-t basis-10/12 content-evenly border-gray-alto">
|
|
14
|
-
<h3 :class="selected !== {{getRandom}} ? 'line-clamp-2' : ''" class="hover:text-toplineColor self-center my-3.5 text-base font-normal sm480:my-5 sm480:text-lg font-headingSerif">{{{this.text}}}</h3>
|
|
16
|
+
<h3 aria-hidden="true" :class="selected !== {{getRandom}} ? 'line-clamp-2' : ''" class="hover:text-toplineColor self-center my-3.5 text-base font-normal sm480:my-5 sm480:text-lg font-headingSerif">{{{this.text}}}</h3>
|
|
15
17
|
<span :class="selected == {{getRandom}} ? 'hidden' : ''">
|
|
16
18
|
{{> components/base/image/icon _icon="plus" _addClass="hover:text-toplineColor mx-5 mt-2 sm480:mt-4 w-8 h-8 fill-current"}}
|
|
17
19
|
</span>
|
|
@@ -20,8 +22,10 @@
|
|
|
20
22
|
</span>
|
|
21
23
|
</div>
|
|
22
24
|
</button>
|
|
23
|
-
<div
|
|
25
|
+
<div id="accordionItem{{getRandom}}"
|
|
26
|
+
class="relative w-full overflow-hidden transition-all duration-700 max-h-0"
|
|
24
27
|
style=""
|
|
28
|
+
:class="selected !== {{getRandom}} ? 'invisible' : ''"
|
|
25
29
|
x-ref="container{{getRandom}}"
|
|
26
30
|
x-bind:style="selected == {{getRandom}} ? 'max-height: ' + $refs.container{{getRandom}}.scrollHeight + 'px' : ''"
|
|
27
31
|
>
|