hr-design-system-handlebars 1.63.13 → 1.63.15

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.
@@ -21,7 +21,7 @@ jobs:
21
21
  run: yarn
22
22
  - name: create partials
23
23
  run: yarn partialsToJs
24
- - uses: chromaui/action@v1
24
+ - uses: chromaui/action@latest
25
25
  with:
26
26
  # 👇 Chromatic projectToken, refer to the manage page to obtain it.
27
27
  projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v1.63.15 (Tue Apr 16 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - DPE-2669 Dark mode for Content-Navi [#908](https://github.com/mumprod/hr-design-system-handlebars/pull/908) ([@Sunny1112358](https://github.com/Sunny1112358))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@Sunny1112358](https://github.com/Sunny1112358)
10
+
11
+ ---
12
+
13
+ # v1.63.14 (Fri Apr 12 2024)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - makes the top position dependent on navi height on desktop [#907](https://github.com/mumprod/hr-design-system-handlebars/pull/907) ([@StefanVesper](https://github.com/StefanVesper))
18
+
19
+ #### Authors: 1
20
+
21
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
22
+
23
+ ---
24
+
1
25
  # v1.63.13 (Fri Apr 12 2024)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -718,6 +718,13 @@ video {
718
718
  font-family: DIN, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
719
719
  list-style-type: none;
720
720
  border-color: var(--color-button--dark);
721
+ }
722
+ [class~='tw-dark'] .content-nav-item {
723
+ border-color: #759ace;
724
+ border-color: var(--color-navigation-border-color-dark);
725
+ --tw-border-opacity: 0.75;
726
+ }
727
+ .content-nav-item {
721
728
  fill: #005293;
722
729
  fill: var(--color-content-nav);
723
730
  color: #005293;
@@ -3282,6 +3289,11 @@ article.indexTextDS .indexTextHighlighted .link {
3282
3289
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3283
3290
  transition-duration: 150ms;
3284
3291
  }
3292
+ .transition-\[top\] {
3293
+ transition-property: top;
3294
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3295
+ transition-duration: 150ms;
3296
+ }
3285
3297
  .transition-all {
3286
3298
  transition-property: all;
3287
3299
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -3336,7 +3348,7 @@ article.indexTextDS .indexTextHighlighted .link {
3336
3348
  border-bottom-color: var(--color-secondary-ds);
3337
3349
  }
3338
3350
  .counter-reset {
3339
- counter-reset: cnt1712930751208;
3351
+ counter-reset: cnt1713263195329;
3340
3352
  }
3341
3353
  .hyphens-auto {
3342
3354
  -webkit-hyphens: auto;
@@ -3715,7 +3727,7 @@ article.indexTextDS .indexTextHighlighted .link {
3715
3727
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3716
3728
  }
3717
3729
  .-ordered {
3718
- counter-increment: cnt1712930751208 1;
3730
+ counter-increment: cnt1713263195329 1;
3719
3731
  }
3720
3732
  .-ordered::before {
3721
3733
  position: absolute;
@@ -3731,7 +3743,7 @@ article.indexTextDS .indexTextHighlighted .link {
3731
3743
  letter-spacing: .0125em;
3732
3744
  --tw-text-opacity: 1;
3733
3745
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3734
- content: counter(cnt1712930751208);
3746
+ content: counter(cnt1713263195329);
3735
3747
  }
3736
3748
  /*! ****************************/
3737
3749
  /*! DataPolicy stuff */
@@ -3874,6 +3886,9 @@ article.indexTextDS .indexTextHighlighted .link {
3874
3886
  --color-search-footer-text: #000000;
3875
3887
  --search-icon-color: #000000;
3876
3888
 
3889
+ /* Content navi button border color for dark mode */
3890
+ --color-navigation-border-color-dark: #759ace;
3891
+
3877
3892
  /* Logo-Container Padding */
3878
3893
  --logo-padding-top: 6px;
3879
3894
  --logo-padding-bottom: 6px;
@@ -7364,8 +7379,8 @@ article.indexTextDS .indexTextHighlighted .link {
7364
7379
  top: 0px;
7365
7380
  }
7366
7381
 
7367
- .socialShareDesktop\:top-32 {
7368
- top: 8rem;
7382
+ .socialShareDesktop\:top-\[78px\] {
7383
+ top: 78px;
7369
7384
  }
7370
7385
  }
7371
7386
  .\[\&\:has\(\+\.-hideOnMobile\)\]\:order-1[\:has\(\%2B.-hideOnMobile\)] {
@@ -1,5 +1,5 @@
1
1
  {{#each this.navigationItems}}
2
- <li class="sb-service-navigation-item -{{this.id}} flex flex-col h-10 lg:h-15 md:h-full w-full tablet:first:border-l border-r last:border-r-0 lg:border-r-0 text-navigation-icons border-navigation-border-color" >
2
+ <li class="sb-service-navigation-item -{{this.id}} flex flex-col h-10 lg:h-15 md:h-full w-full tablet:first:border-l border-r last:border-r-0 lg:border-r-0 text-navigation-icons border-navigation-border-color">
3
3
  {{#if this.subNavigation}}
4
4
  <button
5
5
  id="{{nextRandom}}"
@@ -32,10 +32,15 @@
32
32
  },
33
33
  checkIfDesktop() {
34
34
  this.isDesktop = (window.innerWidth >= 1040) ? true : false
35
+ },
36
+ checkNaviHeight() {
37
+ let naviHeight = document.querySelector('#headerWrapper').offsetHeight -20
38
+ if(!this.sharingIsVisible && window.innerWidth >= 1040 ) this.$refs.sharingWrapper.style.top = naviHeight+'px'
35
39
  }
36
40
  }"
37
41
  x-init = "checkIfDesktop()"
38
42
  x-on:resize.window = "checkIfDesktop()"
43
+ x-on:scroll.window.debounce = "checkNaviHeight()"
39
44
  x-on:keydown.escape.prevent.stop="close($refs.button)"
40
45
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
41
46
  x-id="['dropdown-button']"
@@ -53,7 +58,7 @@
53
58
 
54
59
  <div :class="{ 'grid grid-page z-100 fixed bottom-feature-box-height socialShareDesktop:bottom-auto socialShareDesktop:top-0 left-0 w-full': !sharingIsVisible }">
55
60
  <div class="" :class="{ 'flex justify-start col-full sm:col-main relative': !sharingIsVisible }">
56
- <div class="flex gap-3" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-32 left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
61
+ <div x-ref="sharingWrapper" class="flex gap-3 transition-[top]" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-[78px] left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
57
62
  <button
58
63
  class="order-2 h-10 p-2 text-white border bg-button ds-button font-heading hover:bg-button--dark hover:border-button--dark active:bg-button--dark group"
59
64
  x-show="!isDesktop"
@@ -1,5 +1,5 @@
1
1
  {{#each this.navigationItems}}
2
- <li class="sb-service-navigation-item -{{this.id}} flex flex-col h-10 lg:h-15 md:h-full w-full tablet:first:border-l border-r last:border-r-0 lg:border-r-0 text-navigation-icons border-navigation-border-color" >
2
+ <li class="sb-service-navigation-item -{{this.id}} flex flex-col h-10 lg:h-15 md:h-full w-full tablet:first:border-l border-r last:border-r-0 lg:border-r-0 text-navigation-icons border-navigation-border-color">
3
3
  {{#if this.subNavigation}}
4
4
  <button
5
5
  id="{{nextRandom}}"
@@ -32,10 +32,15 @@
32
32
  },
33
33
  checkIfDesktop() {
34
34
  this.isDesktop = (window.innerWidth >= 1040) ? true : false
35
+ },
36
+ checkNaviHeight() {
37
+ let naviHeight = document.querySelector('#headerWrapper').offsetHeight -20
38
+ if(!this.sharingIsVisible && window.innerWidth >= 1040 ) this.$refs.sharingWrapper.style.top = naviHeight+'px'
35
39
  }
36
40
  }"
37
41
  x-init = "checkIfDesktop()"
38
42
  x-on:resize.window = "checkIfDesktop()"
43
+ x-on:scroll.window.debounce = "checkNaviHeight()"
39
44
  x-on:keydown.escape.prevent.stop="close($refs.button)"
40
45
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
41
46
  x-id="['dropdown-button']"
@@ -53,7 +58,7 @@
53
58
 
54
59
  <div :class="{ 'grid grid-page z-100 fixed bottom-feature-box-height socialShareDesktop:bottom-auto socialShareDesktop:top-0 left-0 w-full': !sharingIsVisible }">
55
60
  <div class="" :class="{ 'flex justify-start col-full sm:col-main relative': !sharingIsVisible }">
56
- <div class="flex gap-3" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-32 left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
61
+ <div x-ref="sharingWrapper" class="flex gap-3 transition-[top]" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-[78px] left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
57
62
  <button
58
63
  class="order-2 h-10 p-2 text-white border bg-button ds-button font-heading hover:bg-button--dark hover:border-button--dark active:bg-button--dark group"
59
64
  x-show="!isDesktop"
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.63.13",
9
+ "version": "1.63.15",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -170,7 +170,8 @@
170
170
  @apply text-base;
171
171
  @apply font-copy;
172
172
  @apply list-none;
173
- @apply border-button--dark;
173
+ @apply border-button--dark dark:border-navigation-border-color-dark;
174
+ @apply dark:border-opacity-75;
174
175
  @apply fill-content-nav;
175
176
  @apply text-content-nav;
176
177
  @apply bg-white;
@@ -45,6 +45,9 @@
45
45
  --color-search-footer-text: theme('colors.black.DEFAULT');
46
46
  --search-icon-color: theme('colors.black.DEFAULT');
47
47
 
48
+ /* Content navi button border color for dark mode */
49
+ --color-navigation-border-color-dark: theme('colors.blue.danube');
50
+
48
51
  /* Logo-Container Padding */
49
52
  --logo-padding-top: 6px;
50
53
  --logo-padding-bottom: 6px;
@@ -1,5 +1,5 @@
1
1
  {{#each this.navigationItems}}
2
- <li class="sb-service-navigation-item -{{this.id}} flex flex-col h-10 lg:h-15 md:h-full w-full tablet:first:border-l border-r last:border-r-0 lg:border-r-0 text-navigation-icons border-navigation-border-color" >
2
+ <li class="sb-service-navigation-item -{{this.id}} flex flex-col h-10 lg:h-15 md:h-full w-full tablet:first:border-l border-r last:border-r-0 lg:border-r-0 text-navigation-icons border-navigation-border-color">
3
3
  {{#if this.subNavigation}}
4
4
  <button
5
5
  id="{{nextRandom}}"
@@ -32,10 +32,15 @@
32
32
  },
33
33
  checkIfDesktop() {
34
34
  this.isDesktop = (window.innerWidth >= 1040) ? true : false
35
+ },
36
+ checkNaviHeight() {
37
+ let naviHeight = document.querySelector('#headerWrapper').offsetHeight -20
38
+ if(!this.sharingIsVisible && window.innerWidth >= 1040 ) this.$refs.sharingWrapper.style.top = naviHeight+'px'
35
39
  }
36
40
  }"
37
41
  x-init = "checkIfDesktop()"
38
42
  x-on:resize.window = "checkIfDesktop()"
43
+ x-on:scroll.window.debounce = "checkNaviHeight()"
39
44
  x-on:keydown.escape.prevent.stop="close($refs.button)"
40
45
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
41
46
  x-id="['dropdown-button']"
@@ -53,7 +58,7 @@
53
58
 
54
59
  <div :class="{ 'grid grid-page z-100 fixed bottom-feature-box-height socialShareDesktop:bottom-auto socialShareDesktop:top-0 left-0 w-full': !sharingIsVisible }">
55
60
  <div class="" :class="{ 'flex justify-start col-full sm:col-main relative': !sharingIsVisible }">
56
- <div class="flex gap-3" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-32 left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
61
+ <div x-ref="sharingWrapper" class="flex gap-3 transition-[top]" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-[78px] left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
57
62
  <button
58
63
  class="order-2 h-10 p-2 text-white border bg-button ds-button font-heading hover:bg-button--dark hover:border-button--dark active:bg-button--dark group"
59
64
  x-show="!isDesktop"
@@ -270,6 +270,7 @@ module.exports = {
270
270
  linkWater: '#d3e2f4',
271
271
  blueLuxury: '#007396',
272
272
  nightRider:'#2d2d2d',
273
+ danube: '#759ace',
273
274
  },
274
275
  'black': {
275
276
  DEFAULT: '#000000',
@@ -362,6 +363,7 @@ module.exports = {
362
363
  'brandnav-pseudo': 'var(--color-brandnav-pseudo)',
363
364
  'brandnavigation-bg': 'var(--color-brandnavigation-bg)',
364
365
  'navigation-border-color': 'var(--color-navigation-border-color)',
366
+ 'navigation-border-color-dark': 'var(--color-navigation-border-color-dark)',
365
367
  'servicenavigation-border-color': 'var(--color-servicenavigation-border-color)',
366
368
  'footer-bg': 'var(--color-footer-bg)',
367
369
  'footer-text': 'var(--color-footer-text)',