hr-design-system-handlebars 0.42.9 → 0.42.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,15 @@
1
+ # v0.42.10 (Tue Apr 26 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Teaser Text and Headline fine tuning [#220](https://github.com/mumprod/hr-design-system-handlebars/pull/220) ([@vascoeduardo](https://github.com/vascoeduardo))
6
+
7
+ #### Authors: 1
8
+
9
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
10
+
11
+ ---
12
+
1
13
  # v0.42.9 (Tue Apr 26 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -1435,7 +1435,7 @@ Ensure the default browser behavior of the `hidden` attribute.
1435
1435
  padding-left: 1rem;
1436
1436
  padding-right: 1rem;
1437
1437
  font-size: 0.75rem;
1438
- line-height: 1rem;
1438
+ line-height: 1.063rem;
1439
1439
  }
1440
1440
  .btn--md {
1441
1441
  padding-left: 1.25rem;
@@ -1443,7 +1443,7 @@ Ensure the default browser behavior of the `hidden` attribute.
1443
1443
  padding-top: 0.75rem;
1444
1444
  padding-bottom: 0.75rem;
1445
1445
  font-size: 0.875rem;
1446
- line-height: 1.25rem;
1446
+ line-height: 1.188rem;
1447
1447
  }
1448
1448
  .btn--lg {
1449
1449
  padding-left: 1.5rem;
@@ -1451,7 +1451,7 @@ Ensure the default browser behavior of the `hidden` attribute.
1451
1451
  padding-top: 0.75rem;
1452
1452
  padding-bottom: 0.75rem;
1453
1453
  font-size: 1rem;
1454
- line-height: 1.5rem;
1454
+ line-height: 1.25rem;
1455
1455
  }
1456
1456
  .btn--xl {
1457
1457
  padding-left: 1.5rem;
@@ -1566,6 +1566,9 @@ Ensure the default browser behavior of the `hidden` attribute.
1566
1566
  .-mt-10 {
1567
1567
  margin-top: -2.5rem;
1568
1568
  }
1569
+ .mt-2\.5 {
1570
+ margin-top: 0.625rem;
1571
+ }
1569
1572
  .mr-2\.5 {
1570
1573
  margin-right: 0.625rem;
1571
1574
  }
@@ -1584,8 +1587,8 @@ Ensure the default browser behavior of the `hidden` attribute.
1584
1587
  .mt-0 {
1585
1588
  margin-top: 0px;
1586
1589
  }
1587
- .mt-5 {
1588
- margin-top: 1.25rem;
1590
+ .mt-3 {
1591
+ margin-top: 0.75rem;
1589
1592
  }
1590
1593
  .mr-4 {
1591
1594
  margin-right: 1rem;
@@ -1886,13 +1889,13 @@ Ensure the default browser behavior of the `hidden` attribute.
1886
1889
  .gap-y-9 {
1887
1890
  row-gap: 2.25rem;
1888
1891
  }
1889
- .gap-y-4 {
1890
- row-gap: 1rem;
1892
+ .gap-y-5 {
1893
+ row-gap: 1.25rem;
1891
1894
  }
1892
- .gap-x-5 {
1893
- -webkit-column-gap: 1.25rem;
1894
- -moz-column-gap: 1.25rem;
1895
- column-gap: 1.25rem;
1895
+ .gap-x-4 {
1896
+ -webkit-column-gap: 1rem;
1897
+ -moz-column-gap: 1rem;
1898
+ column-gap: 1rem;
1896
1899
  }
1897
1900
  .divide-y > :not([hidden]) ~ :not([hidden]) {
1898
1901
  --tw-divide-y-reverse: 0;
@@ -2206,15 +2209,15 @@ Ensure the default browser behavior of the `hidden` attribute.
2206
2209
  }
2207
2210
  .text-xs {
2208
2211
  font-size: 0.75rem;
2209
- line-height: 1rem;
2212
+ line-height: 1.063rem;
2210
2213
  }
2211
2214
  .text-sm {
2212
2215
  font-size: 0.875rem;
2213
- line-height: 1.25rem;
2216
+ line-height: 1.188rem;
2214
2217
  }
2215
2218
  .text-base {
2216
2219
  font-size: 1rem;
2217
- line-height: 1.5rem;
2220
+ line-height: 1.25rem;
2218
2221
  }
2219
2222
  .text-lg {
2220
2223
  font-size: 1.125rem;
@@ -2226,7 +2229,7 @@ Ensure the default browser behavior of the `hidden` attribute.
2226
2229
  }
2227
2230
  .text-2xl {
2228
2231
  font-size: 1.375rem;
2229
- line-height: 2rem;
2232
+ line-height: 1.75rem;
2230
2233
  }
2231
2234
  .text-3xl {
2232
2235
  font-size: 1.875rem;
@@ -2234,7 +2237,7 @@ Ensure the default browser behavior of the `hidden` attribute.
2234
2237
  }
2235
2238
  .text-4xl {
2236
2239
  font-size: 2.125rem;
2237
- line-height: 2.25rem;
2240
+ line-height: 2.375rem;
2238
2241
  }
2239
2242
  .text-5xl {
2240
2243
  font-size: 3rem;
@@ -2440,23 +2443,23 @@ Ensure the default browser behavior of the `hidden` attribute.
2440
2443
  }
2441
2444
  .placeholder-text-xs::-webkit-input-placeholder {
2442
2445
  font-size: 0.75rem;
2443
- line-height: 1rem;
2446
+ line-height: 1.063rem;
2444
2447
  }
2445
2448
  .placeholder-text-xs::-moz-placeholder {
2446
2449
  font-size: 0.75rem;
2447
- line-height: 1rem;
2450
+ line-height: 1.063rem;
2448
2451
  }
2449
2452
  .placeholder-text-xs:-ms-input-placeholder {
2450
2453
  font-size: 0.75rem;
2451
- line-height: 1rem;
2454
+ line-height: 1.063rem;
2452
2455
  }
2453
2456
  .placeholder-text-xs::-ms-input-placeholder {
2454
2457
  font-size: 0.75rem;
2455
- line-height: 1rem;
2458
+ line-height: 1.063rem;
2456
2459
  }
2457
2460
  .placeholder-text-xs::placeholder {
2458
2461
  font-size: 0.75rem;
2459
- line-height: 1rem;
2462
+ line-height: 1.063rem;
2460
2463
  }
2461
2464
 
2462
2465
  .hide-scroll-bar {
@@ -2756,14 +2759,14 @@ Ensure the default browser behavior of the `hidden` attribute.
2756
2759
  padding-left: 0px;
2757
2760
  }
2758
2761
 
2759
- .md\:text-base {
2760
- font-size: 1rem;
2761
- line-height: 1.5rem;
2762
- }
2763
-
2764
2762
  .md\:text-4xl {
2765
2763
  font-size: 2.125rem;
2766
- line-height: 2.25rem;
2764
+ line-height: 2.375rem;
2765
+ }
2766
+
2767
+ .md\:text-base {
2768
+ font-size: 1rem;
2769
+ line-height: 1.25rem;
2767
2770
  }
2768
2771
 
2769
2772
  .md\:leading-4 {
@@ -1,5 +1,5 @@
1
1
  <li :class="dropped ? 'h-auto' : 'h-10'"
2
- class="sb-navigation-flyout-item pl-4 {{#if _flyout}}lg:px-0 {{else}}lg:px-2 lg:first-of-type:pl-0 {{/if}}{{#if _parentselected}}lg:whitespace-nowrap{{/if}} flex h-auto text-base border-b border-gray-200 lg:last:border-0 lg:border-0 text-blue-congress justify-start hover:underline">
2
+ class="sb-navigation-flyout-item pl-4 {{#if _flyout}}lg:px-0 {{else}}lg:px-2 lg:first-of-type:pl-0 {{/if}}{{#if _parentselected}}lg:whitespace-nowrap{{/if}} flex h-auto text-base leading-6 border-b border-gray-200 lg:last:border-0 lg:border-0 text-blue-congress justify-start hover:underline">
3
3
 
4
4
  {{#>components/base/link _cssClasses=(inline-switch _fromNav '["RubrikNavigation","ServiceNavigation"]' '["link-focus-inset py-2 w-full","link-focus py-2 md:pl-0 lg:pl-0 lg:pr-0 break-words w-full"]') _doNavigationTracking="true" _clickLabelType=_fromNav _clickLabelPrefix1=_parent _clickLabelPrefix2=this.link.content.text }}
5
5
  {{content.text}}
@@ -37,7 +37,7 @@
37
37
 
38
38
  <div :class="dropped ? 'text-blue-congress fill-current' : 'text-white fill-white'" class="relative flex-row items-center justify-center hidden pt-px text-white lg:flex z-200">
39
39
  <div class="flex" >
40
- <span class="flex text-xs whitespace-nowrap">
40
+ <span class="flex text-xs leading-4 whitespace-nowrap">
41
41
  {{text}}
42
42
  </span>
43
43
  {{#if this.subNavigation}}
@@ -1,4 +1,4 @@
1
- <span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base font-heading {{inline-switch type '["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog"]' '["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive"]'}}">
1
+ <span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-6 font-heading {{inline-switch type '["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog"]' '["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive"]'}}">
2
2
  {{text}}
3
3
  </span>
4
4
  {{~#with this.byline ~}}
@@ -1,4 +1,4 @@
1
- <p class="mt-2 text-xs text-grey-scorpion font-headingSerif">
1
+ <p class="mt-2.5 text-xs text-grey-scorpion font-headingSerif">
2
2
 
3
3
  {{!--Teaser-Info--}}
4
4
  {{#with this.teaserInfo}}
@@ -1,4 +1,4 @@
1
- <article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
1
+ <article class="col-span-12 flex gap-y-5 gap-x-4 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
2
  <figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
3
3
  {{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
4
4
  {{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
@@ -9,7 +9,7 @@
9
9
  {{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
10
10
  </header>
11
11
  <section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
12
- {{> components/Teaser/teaserText text=shorttext size=teasersize hero=isHeroTeaser font=(inline-switch isHeroTeaser '[true]' '["md:text-base md:leading-4 lg:leading-5"]') }}
12
+ {{> components/Teaser/teaserText text=shorttext size=teasersize }}
13
13
  {{> components/Teaser/Byline}}
14
14
  </section>
15
15
  </div>
@@ -1 +1 @@
1
- <span class="block {{inline-switch size '["xxl","sm"]' '["text-2xl md:text-4xl ","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>
1
+ <span class="block {{inline-switch size '["xxl","xl","sm"]' '["text-2xl md:text-4xl","text-2xl md:text-4xl","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>
@@ -1 +1 @@
1
- <span class="{{inline-switch size '["xxl","sm"]' '["","hidden","hidden md:block"]'}} text-sm leading-4 {{font}} mt-5 font-copy">{{text}}</span>
1
+ <span class="{{inline-switch size '["xxl","xl","sm"]' '["block md:text-base","hidden md:block md:text-base","hidden","hidden md:block"]'}} text-sm mt-3 font-copy">{{text}}</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": "0.42.9",
9
+ "version": "0.42.10",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -17,8 +17,8 @@ Zur Auszeichnung von Fließtexten stehen die folgenden Utility Klassen zur verf
17
17
  | :---------- | :-------------------------------------------------- | ------------------ | :---------------------------------------------------- |
18
18
  | `font-copy` | `font-family: DIN, sans-serif` | | Setzt die Eigenschaft `font-family` |
19
19
  | `text-xs` | `font-size: 0.75rem` <br /> `line-height: 1rem` | `12px`<br />`16px` | Setzt die Eigenschaften `font-size` und `line-height` |
20
- | `text-sm` | `font-size: 0.875rem` <br /> `line-height: 1.25rem` | `14px`<br />`20px` | Setzt die Eigenschaften `font-size` und `line-height` |
21
- | `text-base` | `font-size: 1rem` <br /> `line-height: 1.5rem` | `16px`<br />`24px` | Setzt die Eigenschaften `font-size` und `line-height` |
20
+ | `text-sm` | `font-size: 0.875rem` <br /> `line-height: 1.88rem` | `14px`<br />`19px` | Setzt die Eigenschaften `font-size` und `line-height` |
21
+ | `text-base` | `font-size: 1rem` <br /> `line-height: 1.25rem` | `16px`<br />`20px` | Setzt die Eigenschaften `font-size` und `line-height` |
22
22
  | `text-lg` | `font-size: 1.125rem` <br /> `line-height: 1.75rem` | `18px`<br />`28px` | Setzt die Eigenschaften `font-size` und `line-height` |
23
23
  | `text-xl` | `font-size: 1.25rem` <br /> `line-height: 1.75rem` | `20px`<br />`28px` | Setzt die Eigenschaften `font-size` und `line-height` |
24
24
 
@@ -1,5 +1,5 @@
1
1
  <li :class="dropped ? 'h-auto' : 'h-10'"
2
- class="sb-navigation-flyout-item pl-4 {{#if _flyout}}lg:px-0 {{else}}lg:px-2 lg:first-of-type:pl-0 {{/if}}{{#if _parentselected}}lg:whitespace-nowrap{{/if}} flex h-auto text-base border-b border-gray-200 lg:last:border-0 lg:border-0 text-blue-congress justify-start hover:underline">
2
+ class="sb-navigation-flyout-item pl-4 {{#if _flyout}}lg:px-0 {{else}}lg:px-2 lg:first-of-type:pl-0 {{/if}}{{#if _parentselected}}lg:whitespace-nowrap{{/if}} flex h-auto text-base leading-6 border-b border-gray-200 lg:last:border-0 lg:border-0 text-blue-congress justify-start hover:underline">
3
3
 
4
4
  {{#>components/base/link _cssClasses=(inline-switch _fromNav '["RubrikNavigation","ServiceNavigation"]' '["link-focus-inset py-2 w-full","link-focus py-2 md:pl-0 lg:pl-0 lg:pr-0 break-words w-full"]') _doNavigationTracking="true" _clickLabelType=_fromNav _clickLabelPrefix1=_parent _clickLabelPrefix2=this.link.content.text }}
5
5
  {{content.text}}
@@ -37,7 +37,7 @@
37
37
 
38
38
  <div :class="dropped ? 'text-blue-congress fill-current' : 'text-white fill-white'" class="relative flex-row items-center justify-center hidden pt-px text-white lg:flex z-200">
39
39
  <div class="flex" >
40
- <span class="flex text-xs whitespace-nowrap">
40
+ <span class="flex text-xs leading-4 whitespace-nowrap">
41
41
  {{text}}
42
42
  </span>
43
43
  {{#if this.subNavigation}}
@@ -1,4 +1,4 @@
1
- <span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base font-heading {{inline-switch type '["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog"]' '["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive"]'}}">
1
+ <span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-6 font-heading {{inline-switch type '["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog"]' '["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive"]'}}">
2
2
  {{text}}
3
3
  </span>
4
4
  {{~#with this.byline ~}}
@@ -1,4 +1,4 @@
1
- <p class="mt-2 text-xs text-grey-scorpion font-headingSerif">
1
+ <p class="mt-2.5 text-xs text-grey-scorpion font-headingSerif">
2
2
 
3
3
  {{!--Teaser-Info--}}
4
4
  {{#with this.teaserInfo}}
@@ -1,4 +1,4 @@
1
- <article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
1
+ <article class="col-span-12 flex gap-y-5 gap-x-4 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
2
  <figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
3
3
  {{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
4
4
  {{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
@@ -9,7 +9,7 @@
9
9
  {{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
10
10
  </header>
11
11
  <section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
12
- {{> components/Teaser/teaserText text=shorttext size=teasersize hero=isHeroTeaser font=(inline-switch isHeroTeaser '[true]' '["md:text-base md:leading-4 lg:leading-5"]') }}
12
+ {{> components/Teaser/teaserText text=shorttext size=teasersize }}
13
13
  {{> components/Teaser/Byline}}
14
14
  </section>
15
15
  </div>
@@ -1 +1 @@
1
- <span class="block {{inline-switch size '["xxl","sm"]' '["text-2xl md:text-4xl ","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>
1
+ <span class="block {{inline-switch size '["xxl","xl","sm"]' '["text-2xl md:text-4xl","text-2xl md:text-4xl","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>
@@ -16,6 +16,8 @@ let hero_teaser_with_comments = structuredClone(hero_teaser);
16
16
  addCommentLink(hero_teaser_with_comments, comments.commentLink);
17
17
  let md_teaser_with_comments = structuredClone(md_teaser);
18
18
  addCommentLink(md_teaser_with_comments, comments.commentLink);
19
+ let sm_teaser_with_comments = structuredClone(sm_teaser);
20
+ addCommentLink(sm_teaser_with_comments, comments.commentLink);
19
21
 
20
22
  <Meta title="Komponenten/Teaser/Standard"
21
23
  parameters={{
@@ -72,7 +74,7 @@ Ein toller Einleitungstext für unsere `Teaser` Komponente:
72
74
  <Story name="Standard MD" args={md_teaser_with_comments}>
73
75
  {Template.bind({})}
74
76
  </Story>
75
- <Story name="Standard SM" args={sm_teaser}>
77
+ <Story name="Standard SM" args={sm_teaser_with_comments}>
76
78
  {Template.bind({})}
77
79
  </Story>
78
80
 
@@ -1 +1 @@
1
- <span class="{{inline-switch size '["xxl","sm"]' '["","hidden","hidden md:block"]'}} text-sm leading-4 {{font}} mt-5 font-copy">{{text}}</span>
1
+ <span class="{{inline-switch size '["xxl","xl","sm"]' '["block md:text-base","hidden md:block md:text-base","hidden","hidden md:block"]'}} text-sm mt-3 font-copy">{{text}}</span>
@@ -34,7 +34,7 @@ Beispiele für die teaserText-Komponente:
34
34
  name="Teasertext"
35
35
  args={{
36
36
  text: "Dies ist der Teasertext eines normalen Teasers",
37
- size: "xl",
37
+ size: "lg",
38
38
  }}
39
39
  >
40
40
  {Template.bind({})}
@@ -38,9 +38,12 @@ module.exports = {
38
38
 
39
39
  extend: {
40
40
  fontSize: {
41
+ 'xs':['0.75rem', '1.063rem'],
42
+ 'sm':['0.875rem', '1.188rem'],
43
+ 'base':['1rem', '1.25rem'],
41
44
  'lg':['1.125rem', '1.5rem'],
42
- '2xl':['1.375rem', '2rem'],
43
- '4xl':['2.125rem', '2.25rem'],
45
+ '2xl':['1.375rem', '1.75rem'],
46
+ '4xl':['2.125rem', '2.375rem'],
44
47
  },
45
48
  boxShadow: {
46
49
  inner: 'inset 0 0px 5px 0 rgba(0, 0, 0, 0.25)',
@@ -1 +0,0 @@
1
- <{{headlineTag}} class="sb-headline block {{inline-switch visualSize '["4xl","3xl","2xl","xl","lg","base","sm"]' '["text-4xl","text-3xl","text-2xl","text-xl","text-lg","text-base","text-sm"]'}} {{inline-switch font '["headingSerif","heading"]' '["font-headingSerif","font-heading"]'}} {{inline-switch bold '["true","false"]' '["font-bold"]'}} {{class}}" >{{text}}</{{headlineTag}}>
@@ -1 +0,0 @@
1
- <{{headlineTag}} class="sb-headline block {{inline-switch visualSize '["4xl","3xl","2xl","xl","lg","base","sm"]' '["text-4xl","text-3xl","text-2xl","text-xl","text-lg","text-base","text-sm"]'}} {{inline-switch font '["headingSerif","heading"]' '["font-headingSerif","font-heading"]'}} {{inline-switch bold '["true","false"]' '["font-bold"]'}} {{class}}" >{{text}}</{{headlineTag}}>
@@ -1,85 +0,0 @@
1
- import { ArgsTable, Meta, Story, Canvas, Preview } from "@storybook/addon-docs";
2
-
3
- import headline from "./Headline.hbs";
4
-
5
- <Meta
6
- title="Komponenten/Überschrift"
7
- argTypes={{
8
- text: {
9
- control: "text",
10
- description: "Überschrift Text",
11
- },
12
- headlineTag: {
13
- control: {
14
- type: "select",
15
- options: ["span", "h1", "h2", "h3", "h4", "h5", "h6"],
16
- },
17
- description: "Größe",
18
- table: {
19
- defaultValue: {
20
- summary: "span",
21
- },
22
- },
23
- },
24
- visualSize: {
25
- control: {
26
- type: "select",
27
- options: ["", "4xl", "3xl", "2xl", "xl", "lg", "base", "sm"],
28
- },
29
- description: "Optische Größe",
30
- table: {
31
- defaultValue: {
32
- summary: "base",
33
- },
34
- },
35
- },
36
- font: {
37
- description: "Schriftart",
38
- control: {
39
- type: "inline-radio",
40
- options: ["headingSerif", "heading"],
41
- },
42
- table: {
43
- defaultValue: {
44
- summary: "heading",
45
- },
46
- },
47
- },
48
- bold: {
49
- options: ["true", "false"],
50
- control: { type: "inline-radio" },
51
- },
52
- class: {
53
- control: "text",
54
- description: "Extra CSS Klassen",
55
- },
56
- }}
57
- />
58
-
59
- export const Template = ({ text, ...args }) => {
60
- // You can either use a function to create DOM elements or use a plain html string!
61
- // return `<div>${label}</div>`;
62
- return headline({ text, ...args });
63
- };
64
-
65
- # Button
66
-
67
- Ein toller Einleitungstext für unsere `Überschriften` Komponente:
68
-
69
- <Preview withToolbar>
70
- <Story
71
- name="h1"
72
- args={{
73
- headlineTag: "h1",
74
- visualSize: "base",
75
- font: "heading",
76
- text:
77
- "Das ist eine wirklich sehr lange Headline die kein Ende zu finden scheint",
78
- bold: "false",
79
- }}
80
- >
81
- {Template.bind({})}
82
- </Story>
83
- </Preview>
84
-
85
- <ArgsTable story="h1" />