hr-design-system-handlebars 0.120.1 → 0.120.2

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,15 @@
1
+ # v0.120.2 (Thu Jan 19 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - improve accessibility [#486](https://github.com/mumprod/hr-design-system-handlebars/pull/486) ([@hanswurstsalat](https://github.com/hanswurstsalat))
6
+
7
+ #### Authors: 1
8
+
9
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
10
+
11
+ ---
12
+
1
13
  # v0.120.1 (Thu Jan 19 2023)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -2400,7 +2400,7 @@ video {
2400
2400
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
2401
2401
  }
2402
2402
  .counter-reset {
2403
- counter-reset: cnt1674127654674;
2403
+ counter-reset: cnt1674129127459;
2404
2404
  }
2405
2405
  .line-clamp-4 {
2406
2406
  overflow: hidden;
@@ -2618,7 +2618,7 @@ video {
2618
2618
  --tw-ring-color: rgba(255, 255, 255, 0.5);
2619
2619
  }
2620
2620
  .-ordered {
2621
- counter-increment: cnt1674127654674 1;
2621
+ counter-increment: cnt1674129127459 1;
2622
2622
  }
2623
2623
  .-ordered::before {
2624
2624
  position: absolute;
@@ -2634,7 +2634,7 @@ video {
2634
2634
  letter-spacing: .0125em;
2635
2635
  --tw-text-opacity: 1;
2636
2636
  color: rgba(0, 0, 0, var(--tw-text-opacity));
2637
- content: counter(cnt1674127654674);
2637
+ content: counter(cnt1674129127459);
2638
2638
  }
2639
2639
  /*! ****************************/
2640
2640
  /*! text-shadow */
@@ -7,6 +7,7 @@
7
7
  {{~#if _value}} value="{{_value}}"{{/if}}
8
8
  {{~#if _alpineClick}} @click="{{_alpineClick}}"{{/if}}
9
9
  {{~#if _x-show}} x-show="{{_x-show}}"{{/if}}
10
+ {{~#if _noFocus}} tabindex="-1"{{/if}}
10
11
  >
11
12
  {{~#if _showIcon~}}
12
13
  {{> components/base/image/icon _icon=_icon _iconmap=_iconmap _addClass=_addIconClass _webview=_webview}}
@@ -19,4 +19,5 @@
19
19
  _teaserType=_teaserType
20
20
  _teaserSize=_teaserSize
21
21
  _isMobile1to1=_isMobile1to1
22
+ _noFocus=_noFocus
22
23
  }}
@@ -17,6 +17,7 @@
17
17
  _label='Sendung'
18
18
  _srOnly="true"
19
19
  _alpineClick=""
20
+ _noFocus="true"
20
21
  }}
21
22
  {{/decorator}}
22
23
  {{/if}}
@@ -1,6 +1,5 @@
1
1
  <span
2
2
  class='pt-px block text-base text-toplineColor{{#if _css}} {{_css}}{{/if}} font-heading'
3
- aria-label='{{_readMore}}: {{_text}}'
4
3
  >
5
4
  {{_text}}
6
5
  </span>
@@ -1,3 +1,3 @@
1
- <a href="{{_url}}" class="h-6 js-load {{#if _addClass}}{{_addClass}}{{/if}}" {{#with this.trackingData}} data-hr-click-tracking='{"settings": [{"type": "download", "clickLabel": "{{this.pageName}}", "secondLevelId": "{{this.secondLevelId}}"}, {"type": "uxAction", "clickLabel": "medienDownload::podcast::{{../_type}}", "secondLevelId": "{{this.secondLevelId}}" }]}'{{/with}}>
1
+ <a href="{{_url}}" class="h-6 js-load {{#if _addClass}}{{_addClass}}{{/if}}" {{#with this.trackingData}} data-hr-click-tracking='{"settings": [{"type": "download", "clickLabel": "{{this.pageName}}", "secondLevelId": "{{this.secondLevelId}}"}, {"type": "uxAction", "clickLabel": "medienDownload::podcast::{{../_type}}", "secondLevelId": "{{this.secondLevelId}}" }]}'{{/with}} aria-label="Podcast herunterladen">
2
2
  {{> components/base/image/icon _icon='download-neu' _addClass=_iconClass }}
3
3
  </a>
@@ -1,4 +1,4 @@
1
- <button id="button{{_id}}" x-on:keydown.space.prevent.stop="{{_alpineClick}}" x-on:click.stop="{{_alpineClick}}" type="button" class="flex justify-start cursor-pointer group focus:outline-none {{_css}}">
1
+ <button id="button{{_id}}" x-on:keydown.space.prevent.stop="{{_alpineClick}}" x-on:click.stop="{{_alpineClick}}" type="button" class="flex justify-start cursor-pointer group focus:outline-none {{_css}}" aria-label="Podcast starten">
2
2
  <div class="text-white rounded-full js-playbutton bg-podcast ring-white ring">
3
3
  {{> components/base/image/icon _icon="play-wide" _iconmap="icons" _addClass="inline w-12 h-12 fill-current"}}
4
4
  </div>
@@ -49,7 +49,8 @@
49
49
  min="0"
50
50
  max="1000"
51
51
  value="0"
52
- class="h-1 my-4 bg-white rounded-lg appearance-none cursor-pointer grow seek_slider" >
52
+ class="h-1 my-4 bg-white rounded-lg appearance-none cursor-pointer grow seek_slider"
53
+ aria-label="Schieberegler" >
53
54
  </div>
54
55
 
55
56
  {{#if _isPlaylistPlayer}}
@@ -1,5 +1,5 @@
1
1
  <div id="timedisplay{{_id}}" class="{{_containerCss}}">
2
- <span class="{{_currentTimeClasses}} js-currentTime" id="currentTime" >0:00</span>
2
+ <span class="{{_currentTimeClasses}} js-currentTime" id="currentTime{{_id}}" >0:00</span>
3
3
  <span class="{{_durationClasses}} px-0.5"> / </span>
4
- <span class="{{_durationClasses}} js-audioDuration" id="audioDurationFancy">{{_duration}}</span>
4
+ <span class="{{_durationClasses}} js-audioDuration" id="audioDurationFancy{{_id}}">{{_duration}}</span>
5
5
  </div>
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": "0.120.1",
9
+ "version": "0.120.2",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -7,6 +7,7 @@
7
7
  {{~#if _value}} value="{{_value}}"{{/if}}
8
8
  {{~#if _alpineClick}} @click="{{_alpineClick}}"{{/if}}
9
9
  {{~#if _x-show}} x-show="{{_x-show}}"{{/if}}
10
+ {{~#if _noFocus}} tabindex="-1"{{/if}}
10
11
  >
11
12
  {{~#if _showIcon~}}
12
13
  {{> components/base/image/icon _icon=_icon _iconmap=_iconmap _addClass=_addIconClass _webview=_webview}}
@@ -19,4 +19,5 @@
19
19
  _teaserType=_teaserType
20
20
  _teaserSize=_teaserSize
21
21
  _isMobile1to1=_isMobile1to1
22
+ _noFocus=_noFocus
22
23
  }}
@@ -17,6 +17,7 @@
17
17
  _label='Sendung'
18
18
  _srOnly="true"
19
19
  _alpineClick=""
20
+ _noFocus="true"
20
21
  }}
21
22
  {{/decorator}}
22
23
  {{/if}}
@@ -1,6 +1,5 @@
1
1
  <span
2
2
  class='pt-px block text-base text-toplineColor{{#if _css}} {{_css}}{{/if}} font-heading'
3
- aria-label='{{_readMore}}: {{_text}}'
4
3
  >
5
4
  {{_text}}
6
5
  </span>
@@ -1,3 +1,3 @@
1
- <a href="{{_url}}" class="h-6 js-load {{#if _addClass}}{{_addClass}}{{/if}}" {{#with this.trackingData}} data-hr-click-tracking='{"settings": [{"type": "download", "clickLabel": "{{this.pageName}}", "secondLevelId": "{{this.secondLevelId}}"}, {"type": "uxAction", "clickLabel": "medienDownload::podcast::{{../_type}}", "secondLevelId": "{{this.secondLevelId}}" }]}'{{/with}}>
1
+ <a href="{{_url}}" class="h-6 js-load {{#if _addClass}}{{_addClass}}{{/if}}" {{#with this.trackingData}} data-hr-click-tracking='{"settings": [{"type": "download", "clickLabel": "{{this.pageName}}", "secondLevelId": "{{this.secondLevelId}}"}, {"type": "uxAction", "clickLabel": "medienDownload::podcast::{{../_type}}", "secondLevelId": "{{this.secondLevelId}}" }]}'{{/with}} aria-label="Podcast herunterladen">
2
2
  {{> components/base/image/icon _icon='download-neu' _addClass=_iconClass }}
3
3
  </a>
@@ -1,4 +1,4 @@
1
- <button id="button{{_id}}" x-on:keydown.space.prevent.stop="{{_alpineClick}}" x-on:click.stop="{{_alpineClick}}" type="button" class="flex justify-start cursor-pointer group focus:outline-none {{_css}}">
1
+ <button id="button{{_id}}" x-on:keydown.space.prevent.stop="{{_alpineClick}}" x-on:click.stop="{{_alpineClick}}" type="button" class="flex justify-start cursor-pointer group focus:outline-none {{_css}}" aria-label="Podcast starten">
2
2
  <div class="text-white rounded-full js-playbutton bg-podcast ring-white ring">
3
3
  {{> components/base/image/icon _icon="play-wide" _iconmap="icons" _addClass="inline w-12 h-12 fill-current"}}
4
4
  </div>
@@ -49,7 +49,8 @@
49
49
  min="0"
50
50
  max="1000"
51
51
  value="0"
52
- class="h-1 my-4 bg-white rounded-lg appearance-none cursor-pointer grow seek_slider" >
52
+ class="h-1 my-4 bg-white rounded-lg appearance-none cursor-pointer grow seek_slider"
53
+ aria-label="Schieberegler" >
53
54
  </div>
54
55
 
55
56
  {{#if _isPlaylistPlayer}}
@@ -1,5 +1,5 @@
1
1
  <div id="timedisplay{{_id}}" class="{{_containerCss}}">
2
- <span class="{{_currentTimeClasses}} js-currentTime" id="currentTime" >0:00</span>
2
+ <span class="{{_currentTimeClasses}} js-currentTime" id="currentTime{{_id}}" >0:00</span>
3
3
  <span class="{{_durationClasses}} px-0.5"> / </span>
4
- <span class="{{_durationClasses}} js-audioDuration" id="audioDurationFancy">{{_duration}}</span>
4
+ <span class="{{_durationClasses}} js-audioDuration" id="audioDurationFancy{{_id}}">{{_duration}}</span>
5
5
  </div>