hr-design-system-handlebars 1.35.10 → 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 CHANGED
@@ -1,3 +1,27 @@
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
+
13
+ # v1.35.11 (Thu Aug 10 2023)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - subscribe button right below shorttext instead of own flex row [#707](https://github.com/mumprod/hr-design-system-handlebars/pull/707) ([@StefanVesper](https://github.com/StefanVesper))
18
+
19
+ #### Authors: 1
20
+
21
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
22
+
23
+ ---
24
+
1
25
  # v1.35.10 (Wed Aug 09 2023)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -3025,7 +3025,7 @@ video {
3025
3025
  border-bottom-color: var(--color-secondary-ds);
3026
3026
  }
3027
3027
  .counter-reset {
3028
- counter-reset: cnt1691580904518;
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: cnt1691580904518 1;
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(cnt1691580904518);
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 class="relative w-full overflow-hidden transition-all duration-700 max-h-0"
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
  >
@@ -25,6 +25,13 @@
25
25
  {{/switch}} --}}
26
26
 
27
27
  {{> components/teaser/podcast/podcast_playlist_shorttext}}
28
+
29
+ {{!-- Abo-Dropdown --}}
30
+ {{#if this.isSingleChannel}}
31
+
32
+ {{> components/teaser/podcast/podcast_subscribe_button}}
33
+
34
+ {{/if}}
28
35
  </div>
29
36
 
30
37
  {{!-- Podcast Image --}}
@@ -49,12 +56,7 @@
49
56
  {{/case}}
50
57
  {{/switch}} --}}
51
58
 
52
- {{!-- Abo-Dropdown --}}
53
- {{#if this.isSingleChannel}}
54
- <div class="flex flex-row px-5 md:pr-0">
55
- {{> components/teaser/podcast/podcast_subscribe_button}}
56
- </div>
57
- {{/if}}
59
+
58
60
  </div>
59
61
  </div>
60
62
 
@@ -16,13 +16,13 @@
16
16
  x-on:keydown.escape.prevent.stop="close($refs.button)"
17
17
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
18
18
  x-id="['dropdown-button']"
19
- class="relative h-10 z-100"
19
+ class="flex flex-col h-10 w-fit z-100"
20
20
  >
21
21
 
22
22
  {{!-- Button --}}
23
23
  {{#with this}}
24
24
  {{#> components/button/button _size="md" _disableButtonPress=true}}
25
- {{>components/button/components/button_label _label="Abonnieren" _css="flex-1 truncate mr-2" _type="button"}}
25
+ {{>components/button/components/button_label _label="Abonnieren" _css="flex-1 text-left truncate mr-2" _type="button"}}
26
26
  <span x-cloak x-show="open" class="w-3 h-3">
27
27
  {{> components/base/image/icon _icon='arrow-up' _addClass="flex self-center w-3 h-3 fill-white" }}
28
28
  </span>
@@ -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 class="relative w-full overflow-hidden transition-all duration-700 max-h-0"
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
  >
@@ -25,6 +25,13 @@
25
25
  {{/switch}} --}}
26
26
 
27
27
  {{> components/teaser/podcast/podcast_playlist_shorttext}}
28
+
29
+ {{!-- Abo-Dropdown --}}
30
+ {{#if this.isSingleChannel}}
31
+
32
+ {{> components/teaser/podcast/podcast_subscribe_button}}
33
+
34
+ {{/if}}
28
35
  </div>
29
36
 
30
37
  {{!-- Podcast Image --}}
@@ -49,12 +56,7 @@
49
56
  {{/case}}
50
57
  {{/switch}} --}}
51
58
 
52
- {{!-- Abo-Dropdown --}}
53
- {{#if this.isSingleChannel}}
54
- <div class="flex flex-row px-5 md:pr-0">
55
- {{> components/teaser/podcast/podcast_subscribe_button}}
56
- </div>
57
- {{/if}}
59
+
58
60
  </div>
59
61
  </div>
60
62
 
@@ -16,13 +16,13 @@
16
16
  x-on:keydown.escape.prevent.stop="close($refs.button)"
17
17
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
18
18
  x-id="['dropdown-button']"
19
- class="relative h-10 z-100"
19
+ class="flex flex-col h-10 w-fit z-100"
20
20
  >
21
21
 
22
22
  {{!-- Button --}}
23
23
  {{#with this}}
24
24
  {{#> components/button/button _size="md" _disableButtonPress=true}}
25
- {{>components/button/components/button_label _label="Abonnieren" _css="flex-1 truncate mr-2" _type="button"}}
25
+ {{>components/button/components/button_label _label="Abonnieren" _css="flex-1 text-left truncate mr-2" _type="button"}}
26
26
  <span x-cloak x-show="open" class="w-3 h-3">
27
27
  {{> components/base/image/icon _icon='arrow-up' _addClass="flex self-center w-3 h-3 fill-white" }}
28
28
  </span>
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.10",
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 class="relative w-full overflow-hidden transition-all duration-700 max-h-0"
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
  >
@@ -25,6 +25,13 @@
25
25
  {{/switch}} --}}
26
26
 
27
27
  {{> components/teaser/podcast/podcast_playlist_shorttext}}
28
+
29
+ {{!-- Abo-Dropdown --}}
30
+ {{#if this.isSingleChannel}}
31
+
32
+ {{> components/teaser/podcast/podcast_subscribe_button}}
33
+
34
+ {{/if}}
28
35
  </div>
29
36
 
30
37
  {{!-- Podcast Image --}}
@@ -49,12 +56,7 @@
49
56
  {{/case}}
50
57
  {{/switch}} --}}
51
58
 
52
- {{!-- Abo-Dropdown --}}
53
- {{#if this.isSingleChannel}}
54
- <div class="flex flex-row px-5 md:pr-0">
55
- {{> components/teaser/podcast/podcast_subscribe_button}}
56
- </div>
57
- {{/if}}
59
+
58
60
  </div>
59
61
  </div>
60
62
 
@@ -16,13 +16,13 @@
16
16
  x-on:keydown.escape.prevent.stop="close($refs.button)"
17
17
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
18
18
  x-id="['dropdown-button']"
19
- class="relative h-10 z-100"
19
+ class="flex flex-col h-10 w-fit z-100"
20
20
  >
21
21
 
22
22
  {{!-- Button --}}
23
23
  {{#with this}}
24
24
  {{#> components/button/button _size="md" _disableButtonPress=true}}
25
- {{>components/button/components/button_label _label="Abonnieren" _css="flex-1 truncate mr-2" _type="button"}}
25
+ {{>components/button/components/button_label _label="Abonnieren" _css="flex-1 text-left truncate mr-2" _type="button"}}
26
26
  <span x-cloak x-show="open" class="w-3 h-3">
27
27
  {{> components/base/image/icon _icon='arrow-up' _addClass="flex self-center w-3 h-3 fill-white" }}
28
28
  </span>