hr-design-system-handlebars 0.47.7 → 0.47.10

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,40 @@
1
+ # v0.47.10 (Tue Jun 14 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Alternative-Teaser zusammenbauen [#245](https://github.com/mumprod/hr-design-system-handlebars/pull/245) (zouhair1 [@selbaciri](https://github.com/selbaciri))
6
+
7
+ #### Authors: 2
8
+
9
+ - Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
10
+ - selbaciri (zouhair1)
11
+
12
+ ---
13
+
14
+ # v0.47.9 (Tue Jun 14 2022)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - - outsourced title class logic to own template [#243](https://github.com/mumprod/hr-design-system-handlebars/pull/243) ([@vascoeduardo](https://github.com/vascoeduardo))
19
+
20
+ #### Authors: 1
21
+
22
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
23
+
24
+ ---
25
+
26
+ # v0.47.8 (Tue Jun 14 2022)
27
+
28
+ #### 🐛 Bug Fix
29
+
30
+ - adds support for detect scroll initiated by user or browser [#241](https://github.com/mumprod/hr-design-system-handlebars/pull/241) ([@StefanVesper](https://github.com/StefanVesper))
31
+
32
+ #### Authors: 1
33
+
34
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
35
+
36
+ ---
37
+
1
38
  # v0.47.7 (Mon Jun 13 2022)
2
39
 
3
40
  #### 🐛 Bug Fix
@@ -1750,14 +1750,22 @@ Ensure the default browser behavior of the `hidden` attribute.
1750
1750
  -ms-flex-negative: 0;
1751
1751
  flex-shrink: 0;
1752
1752
  }
1753
- .basis-3\/5 {
1754
- -ms-flex-preferred-size: 60%;
1755
- flex-basis: 60%;
1756
- }
1757
1753
  .basis-2\/5 {
1758
1754
  -ms-flex-preferred-size: 40%;
1759
1755
  flex-basis: 40%;
1760
1756
  }
1757
+ .basis-1\/3 {
1758
+ -ms-flex-preferred-size: 33.333333%;
1759
+ flex-basis: 33.333333%;
1760
+ }
1761
+ .basis-2\/3 {
1762
+ -ms-flex-preferred-size: 66.666667%;
1763
+ flex-basis: 66.666667%;
1764
+ }
1765
+ .basis-3\/5 {
1766
+ -ms-flex-preferred-size: 60%;
1767
+ flex-basis: 60%;
1768
+ }
1761
1769
  .-translate-x-1\/2 {
1762
1770
  --tw-translate-x: -50%;
1763
1771
  -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -1880,17 +1888,14 @@ Ensure the default browser behavior of the `hidden` attribute.
1880
1888
  .gap-y-9 {
1881
1889
  row-gap: 2.25rem;
1882
1890
  }
1883
- .gap-y-4 {
1884
- row-gap: 1rem;
1885
- }
1886
- .gap-x-5 {
1887
- -webkit-column-gap: 1.25rem;
1888
- -moz-column-gap: 1.25rem;
1889
- column-gap: 1.25rem;
1890
- }
1891
1891
  .gap-y-5 {
1892
1892
  row-gap: 1.25rem;
1893
1893
  }
1894
+ .gap-x-3 {
1895
+ -webkit-column-gap: 0.75rem;
1896
+ -moz-column-gap: 0.75rem;
1897
+ column-gap: 0.75rem;
1898
+ }
1894
1899
  .gap-x-4 {
1895
1900
  -webkit-column-gap: 1rem;
1896
1901
  -moz-column-gap: 1rem;
@@ -2154,6 +2159,10 @@ Ensure the default browser behavior of the `hidden` attribute.
2154
2159
  padding-top: 0.75rem;
2155
2160
  padding-bottom: 0.75rem;
2156
2161
  }
2162
+ .px-0 {
2163
+ padding-left: 0px;
2164
+ padding-right: 0px;
2165
+ }
2157
2166
  .px-2 {
2158
2167
  padding-left: 0.5rem;
2159
2168
  padding-right: 0.5rem;
@@ -2178,10 +2187,6 @@ Ensure the default browser behavior of the `hidden` attribute.
2178
2187
  padding-top: 0.25rem;
2179
2188
  padding-bottom: 0.25rem;
2180
2189
  }
2181
- .px-0 {
2182
- padding-left: 0px;
2183
- padding-right: 0px;
2184
- }
2185
2190
  .px-4 {
2186
2191
  padding-left: 1rem;
2187
2192
  padding-right: 1rem;
@@ -2761,6 +2766,23 @@ Ensure the default browser behavior of the `hidden` attribute.
2761
2766
  flex: 1 1 auto;
2762
2767
  }
2763
2768
 
2769
+ .md\:basis-1\/3 {
2770
+ -ms-flex-preferred-size: 33.333333%;
2771
+ flex-basis: 33.333333%;
2772
+ }
2773
+
2774
+ .md\:basis-2\/3 {
2775
+ -ms-flex-preferred-size: 66.666667%;
2776
+ flex-basis: 66.666667%;
2777
+ }
2778
+
2779
+ .md\:flex-row {
2780
+ -webkit-box-orient: horizontal;
2781
+ -webkit-box-direction: normal;
2782
+ -ms-flex-direction: row;
2783
+ flex-direction: row;
2784
+ }
2785
+
2764
2786
  .md\:flex-col {
2765
2787
  -webkit-box-orient: vertical;
2766
2788
  -webkit-box-direction: normal;
@@ -2774,6 +2796,12 @@ Ensure the default browser behavior of the `hidden` attribute.
2774
2796
  justify-content: flex-end;
2775
2797
  }
2776
2798
 
2799
+ .md\:gap-x-5 {
2800
+ -webkit-column-gap: 1.25rem;
2801
+ -moz-column-gap: 1.25rem;
2802
+ column-gap: 1.25rem;
2803
+ }
2804
+
2777
2805
  .md\:rounded-none {
2778
2806
  border-radius: 0px;
2779
2807
  }
@@ -2828,6 +2856,11 @@ Ensure the default browser behavior of the `hidden` attribute.
2828
2856
  line-height: 2.375rem;
2829
2857
  }
2830
2858
 
2859
+ .md\:text-3xl {
2860
+ font-size: 1.875rem;
2861
+ line-height: 2.25rem;
2862
+ }
2863
+
2831
2864
  .md\:leading-4 {
2832
2865
  line-height: 1rem;
2833
2866
  }
@@ -32,6 +32,15 @@ document.addEventListener('alpine:init', () => {
32
32
  init(){
33
33
  let lastScrollTop = 0
34
34
  let height = top.innerHeight
35
+
36
+ let userScroll = false;
37
+ window.userScroll = userScroll;
38
+
39
+ function mouseEvent(e) {
40
+ userScroll = true;
41
+ window.userScroll = true;
42
+ }
43
+ window.addEventListener('wheel', mouseEvent, false);
35
44
 
36
45
  window.addEventListener('scroll', this.debounce( () => {
37
46
  let winScroll = document.body.scrollTop || document.documentElement.scrollTop
@@ -42,8 +51,10 @@ document.addEventListener('alpine:init', () => {
42
51
  //console.log('winscroll: '+winScroll+' height: '+height + ' percent: '+ this.percent)
43
52
  this.$store.navIsVisible = !this.isNavHidden()
44
53
  this.$store.subNavIsVisible = !this.isSubNavHidden()
45
- //console.log(this.$store.navIsVisible);
46
- },50))
54
+
55
+ //console.log('Scroll initiated by ' + (window.userScroll == true ? "user" : "browser"));
56
+
57
+ },50), {passive: true})
47
58
  },
48
59
  percent: 0,
49
60
  scrollingDown: true,
@@ -69,10 +80,19 @@ document.addEventListener('alpine:init', () => {
69
80
  return this.percent > 0
70
81
  },
71
82
  shouldSectionNavBeHidden() {
72
- return this.percent > 50 && this.scrollingDown && this.$store.burgeropen == false && this.$screen('lg')
83
+ if(window.userScroll == true){
84
+ return this.percent > 50 && this.scrollingDown && this.$store.burgeropen == false && this.$screen('lg')
85
+ } else {
86
+ return this.percent > 50 && this.$store.burgeropen == false && this.$screen('lg')
87
+ }
88
+
73
89
  },
74
90
  shouldServiceNavBeHidden() {
75
- return (this.percent > 90 && !this.$screen('lg') && this.scrollingDown && this.$store.burgeropen == false)
91
+ if(window.userScroll == true) {
92
+ return (this.percent > 90 && !this.$screen('lg') && this.scrollingDown && this.$store.burgeropen == false)
93
+ } else {
94
+ return (this.percent > 90 && !this.$screen('lg') && this.$store.burgeropen == false)
95
+ }
76
96
  },
77
97
  shouldServiceIconsBeHidden() {
78
98
  return (this.percent > 50 && !this.$screen('md') && this.$store.burgeropen == false && this.$store.serviceNavIsOpen == false && this.scrollingDown == true) || (this.percent > 50 && !this.$screen('md') && this.$store.burgeropen == false && this.$store.serviceNavIsOpen == false && this.scrollingDown == false)
@@ -7,5 +7,5 @@
7
7
  {{#if topline}}
8
8
  {{> components/teaser/components/teaser_topline text=topline readMore=readMore}}
9
9
  {{/if}}
10
- {{> components/teaser/components/teaser_title text=title fontVariant=fontVariant size=size }}
10
+ {{> components/teaser/components/teaser_title text=title fontVariant=fontVariant size=size teaserType=teaserType}}
11
11
  </{{~ headlineTag ~}}>
@@ -1,13 +1,3 @@
1
- <span
2
- class='block mt-0.5
3
- {{inline-switch
4
- size
5
- '["hero","100","25"]'
6
- '[" text-2xl md:text-4xl"," text-2xl md:text-4xl"," text-lg"," text-2xl"]'
7
- }}
8
- {{inline-switch
9
- fontVariant
10
- '["serif", "sans-serif"]'
11
- '[" font-headingSerif"," font-heading font-bold"," font-headingSerif"]'
12
- }}'
13
- >{{text}}</span>
1
+ <span class='block mt-0.5 {{> components/teaser/components/teaser_title_classes size=size teaserType=teaserType fontVariant=fontVariant}}'>
2
+ {{~text~}}
3
+ </span>
@@ -0,0 +1,21 @@
1
+ {{#switch teaserType~}}
2
+ {{~#case "standard"~}}
3
+ {{~inline-switch
4
+ size
5
+ '["hero","100","25"]'
6
+ '["text-2xl md:text-4xl","text-2xl md:text-4xl","text-lg","text-2xl"]'
7
+ ~}}
8
+ {{~/case~}}
9
+ {{~#case "alternative"~}}
10
+ {{~inline-switch
11
+ size
12
+ '["hero","100","50"]'
13
+ '["text-2xl md:text-3xl","text-2xl md:text-3xl","text-2xl"]'
14
+ ~}}
15
+ {{~/case~}}
16
+ {{~/switch~}}
17
+ {{~inline-switch
18
+ fontVariant
19
+ '["serif", "sans-serif"]'
20
+ '[" font-headingSerif"," font-heading font-bold"," font-headingSerif"]'
21
+ ~}}
@@ -1,11 +1,11 @@
1
- <article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch this.teaserSize '["50"]' '["md:col-span-6 flex-row","flex-row"]'}} ">
2
- <figure class="{{inline-switch this.teaserSize '["hero"]' '["basis-3/5 ar-16-9", "ar-16-9"]'}} ">
1
+ <article class="col-span-12 flex gap-y-5 gap-x-3 md:gap-x-5 md:px-0 {{inline-switch this.teaserSize '["50","100","hero"]' '["px-5 md:col-span-6 flex-row","flex-col md:flex-row","flex-col md:flex-row"]'}} ">
2
+ <figure class="ar-16-9 {{inline-switch this.teaserSize '["50","100","hero"]' '["basis-2/5 md:basis-1/3", "basis-1/3" , "basis-2/3"]'}} ">
3
3
  {{#>components/base/link css="" isAriaHidden=true doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="mediaLink" }}
4
4
  {{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../noDelay addClassImg="" ~}}
5
5
  {{/components/base/link}}
6
6
  </figure>
7
- <div class="{{inline-switch this.teaserSize '["hero"]' '["basis-2/5"]'}} ">
8
- <header class="px-5 md:px-0">
7
+ <div class="{{inline-switch this.teaserSize '["50","100","hero"]' '["basis-3/5 md:basis-2/3","basis-2/3","basis-1/3"]'}} ">
8
+ <header class="md:px-0 px-5 {{inline-switch this.teaserSize '["50"]' '["px-0"]'}}">
9
9
  {{#>components/base/link css="hover:text-toplineColor" doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="headlineLink" }}
10
10
  {{> components/teaser/components/teaser_heading fontVariant=this.headingFontVariant
11
11
  headlineTag=this.headlineTag
@@ -16,7 +16,7 @@
16
16
  topline=this.topline}}
17
17
  {{/components/base/link}}
18
18
  </header>
19
- <section class="px-5 md:px-0">
19
+ <section class="md:px-0 px-5 {{inline-switch this.teaserSize '["50"]' '["px-0"]'}}">
20
20
  {{> components/teaser/components/teaser_text text=this.shorttext size=this.teaserSize }}
21
21
  {{> components/teaser/components/teaser_byline}}
22
22
  </section>
@@ -14,7 +14,8 @@
14
14
  readMore=this.link.readMoreText.readMoreScreenreader
15
15
  size=this.teaserSize
16
16
  title=this.title
17
- topline=this.topline }}
17
+ topline=this.topline
18
+ teaserType=this.teaserType}}
18
19
  {{/components/base/link}}
19
20
  </header>
20
21
  <section class="md:px-0 {{inline-switch this.teaserSize '["25"]' '["","px-5"]'}}">
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.47.7",
9
+ "version": "0.47.10",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -32,6 +32,15 @@ document.addEventListener('alpine:init', () => {
32
32
  init(){
33
33
  let lastScrollTop = 0
34
34
  let height = top.innerHeight
35
+
36
+ let userScroll = false;
37
+ window.userScroll = userScroll;
38
+
39
+ function mouseEvent(e) {
40
+ userScroll = true;
41
+ window.userScroll = true;
42
+ }
43
+ window.addEventListener('wheel', mouseEvent, false);
35
44
 
36
45
  window.addEventListener('scroll', this.debounce( () => {
37
46
  let winScroll = document.body.scrollTop || document.documentElement.scrollTop
@@ -42,8 +51,10 @@ document.addEventListener('alpine:init', () => {
42
51
  //console.log('winscroll: '+winScroll+' height: '+height + ' percent: '+ this.percent)
43
52
  this.$store.navIsVisible = !this.isNavHidden()
44
53
  this.$store.subNavIsVisible = !this.isSubNavHidden()
45
- //console.log(this.$store.navIsVisible);
46
- },50))
54
+
55
+ //console.log('Scroll initiated by ' + (window.userScroll == true ? "user" : "browser"));
56
+
57
+ },50), {passive: true})
47
58
  },
48
59
  percent: 0,
49
60
  scrollingDown: true,
@@ -69,10 +80,19 @@ document.addEventListener('alpine:init', () => {
69
80
  return this.percent > 0
70
81
  },
71
82
  shouldSectionNavBeHidden() {
72
- return this.percent > 50 && this.scrollingDown && this.$store.burgeropen == false && this.$screen('lg')
83
+ if(window.userScroll == true){
84
+ return this.percent > 50 && this.scrollingDown && this.$store.burgeropen == false && this.$screen('lg')
85
+ } else {
86
+ return this.percent > 50 && this.$store.burgeropen == false && this.$screen('lg')
87
+ }
88
+
73
89
  },
74
90
  shouldServiceNavBeHidden() {
75
- return (this.percent > 90 && !this.$screen('lg') && this.scrollingDown && this.$store.burgeropen == false)
91
+ if(window.userScroll == true) {
92
+ return (this.percent > 90 && !this.$screen('lg') && this.scrollingDown && this.$store.burgeropen == false)
93
+ } else {
94
+ return (this.percent > 90 && !this.$screen('lg') && this.$store.burgeropen == false)
95
+ }
76
96
  },
77
97
  shouldServiceIconsBeHidden() {
78
98
  return (this.percent > 50 && !this.$screen('md') && this.$store.burgeropen == false && this.$store.serviceNavIsOpen == false && this.scrollingDown == true) || (this.percent > 50 && !this.$screen('md') && this.$store.burgeropen == false && this.$store.serviceNavIsOpen == false && this.scrollingDown == false)
@@ -7,5 +7,5 @@
7
7
  {{#if topline}}
8
8
  {{> components/teaser/components/teaser_topline text=topline readMore=readMore}}
9
9
  {{/if}}
10
- {{> components/teaser/components/teaser_title text=title fontVariant=fontVariant size=size }}
10
+ {{> components/teaser/components/teaser_title text=title fontVariant=fontVariant size=size teaserType=teaserType}}
11
11
  </{{~ headlineTag ~}}>
@@ -80,6 +80,7 @@ Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
80
80
  headlineTag: 'h1',
81
81
  fontVariant: 'serif',
82
82
  size: 'hero',
83
+ teaserType: 'standard'
83
84
  }}
84
85
  >
85
86
  {Template.bind({})}
@@ -108,6 +109,7 @@ Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
108
109
  headlineTag: 'h1',
109
110
  fontVariant: 'serif',
110
111
  size: '33',
112
+ teaserType: 'standard'
111
113
  }}
112
114
  >
113
115
  {Template.bind({})}
@@ -134,6 +136,7 @@ Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
134
136
  headlineTag: 'h1',
135
137
  fontVariant: 'serif',
136
138
  size: '25',
139
+ teaserType: 'standard'
137
140
  }}
138
141
  >
139
142
  {Template.bind({})}
@@ -1,13 +1,3 @@
1
- <span
2
- class='block mt-0.5
3
- {{inline-switch
4
- size
5
- '["hero","100","25"]'
6
- '[" text-2xl md:text-4xl"," text-2xl md:text-4xl"," text-lg"," text-2xl"]'
7
- }}
8
- {{inline-switch
9
- fontVariant
10
- '["serif", "sans-serif"]'
11
- '[" font-headingSerif"," font-heading font-bold"," font-headingSerif"]'
12
- }}'
13
- >{{text}}</span>
1
+ <span class='block mt-0.5 {{> components/teaser/components/teaser_title_classes size=size teaserType=teaserType fontVariant=fontVariant}}'>
2
+ {{~text~}}
3
+ </span>
@@ -51,6 +51,7 @@ Beispiele für die Titel-Komponente:
51
51
  text: 'Dies ist der Titel eines 100%-Teasers',
52
52
  size: 'hero',
53
53
  fontVariant: 'serif',
54
+ teaserType: 'standard'
54
55
  }}
55
56
  >
56
57
  {Template.bind({})}
@@ -61,6 +62,7 @@ Beispiele für die Titel-Komponente:
61
62
  text: 'Dies ist der Titel eines 66%-, 50%- oder 33%-Teasers',
62
63
  size: '33',
63
64
  fontVariant: 'serif',
65
+ teaserType: 'standard'
64
66
  }}
65
67
  >
66
68
  {Template.bind({})}
@@ -71,6 +73,7 @@ Beispiele für die Titel-Komponente:
71
73
  text: 'Dies ist der Titel eines 25%-Teasers',
72
74
  size: '25',
73
75
  fontVariant: 'serif',
76
+ teaserType: 'standard'
74
77
  }}
75
78
  >
76
79
  {Template.bind({})}
@@ -0,0 +1,21 @@
1
+ {{#switch teaserType~}}
2
+ {{~#case "standard"~}}
3
+ {{~inline-switch
4
+ size
5
+ '["hero","100","25"]'
6
+ '["text-2xl md:text-4xl","text-2xl md:text-4xl","text-lg","text-2xl"]'
7
+ ~}}
8
+ {{~/case~}}
9
+ {{~#case "alternative"~}}
10
+ {{~inline-switch
11
+ size
12
+ '["hero","100","50"]'
13
+ '["text-2xl md:text-3xl","text-2xl md:text-3xl","text-2xl"]'
14
+ ~}}
15
+ {{~/case~}}
16
+ {{~/switch~}}
17
+ {{~inline-switch
18
+ fontVariant
19
+ '["serif", "sans-serif"]'
20
+ '[" font-headingSerif"," font-heading font-bold"," font-headingSerif"]'
21
+ ~}}
@@ -1,11 +1,11 @@
1
- <article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch this.teaserSize '["50"]' '["md:col-span-6 flex-row","flex-row"]'}} ">
2
- <figure class="{{inline-switch this.teaserSize '["hero"]' '["basis-3/5 ar-16-9", "ar-16-9"]'}} ">
1
+ <article class="col-span-12 flex gap-y-5 gap-x-3 md:gap-x-5 md:px-0 {{inline-switch this.teaserSize '["50","100","hero"]' '["px-5 md:col-span-6 flex-row","flex-col md:flex-row","flex-col md:flex-row"]'}} ">
2
+ <figure class="ar-16-9 {{inline-switch this.teaserSize '["50","100","hero"]' '["basis-2/5 md:basis-1/3", "basis-1/3" , "basis-2/3"]'}} ">
3
3
  {{#>components/base/link css="" isAriaHidden=true doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="mediaLink" }}
4
4
  {{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../noDelay addClassImg="" ~}}
5
5
  {{/components/base/link}}
6
6
  </figure>
7
- <div class="{{inline-switch this.teaserSize '["hero"]' '["basis-2/5"]'}} ">
8
- <header class="px-5 md:px-0">
7
+ <div class="{{inline-switch this.teaserSize '["50","100","hero"]' '["basis-3/5 md:basis-2/3","basis-2/3","basis-1/3"]'}} ">
8
+ <header class="md:px-0 px-5 {{inline-switch this.teaserSize '["50"]' '["px-0"]'}}">
9
9
  {{#>components/base/link css="hover:text-toplineColor" doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="headlineLink" }}
10
10
  {{> components/teaser/components/teaser_heading fontVariant=this.headingFontVariant
11
11
  headlineTag=this.headlineTag
@@ -16,7 +16,7 @@
16
16
  topline=this.topline}}
17
17
  {{/components/base/link}}
18
18
  </header>
19
- <section class="px-5 md:px-0">
19
+ <section class="md:px-0 px-5 {{inline-switch this.teaserSize '["50"]' '["px-0"]'}}">
20
20
  {{> components/teaser/components/teaser_text text=this.shorttext size=this.teaserSize }}
21
21
  {{> components/teaser/components/teaser_byline}}
22
22
  </section>
@@ -14,7 +14,8 @@
14
14
  readMore=this.link.readMoreText.readMoreScreenreader
15
15
  size=this.teaserSize
16
16
  title=this.title
17
- topline=this.topline }}
17
+ topline=this.topline
18
+ teaserType=this.teaserType}}
18
19
  {{/components/base/link}}
19
20
  </header>
20
21
  <section class="md:px-0 {{inline-switch this.teaserSize '["25"]' '["","px-5"]'}}">