hr-design-system-handlebars 1.82.10 → 1.82.11

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
+ # v1.82.11 (Thu Jul 18 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Fixing setting button behaviour [#1016](https://github.com/mumprod/hr-design-system-handlebars/pull/1016) ([@Paul-Atreidis](https://github.com/Paul-Atreidis))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@Paul-Atreidis](https://github.com/Paul-Atreidis)
10
+
11
+ ---
12
+
1
13
  # v1.82.10 (Thu Jul 18 2024)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -3336,7 +3336,7 @@ article.indexTextDS .indexTextHighlighted .link {
3336
3336
  border-bottom-color: var(--color-secondary-ds);
3337
3337
  }
3338
3338
  .counter-reset {
3339
- counter-reset: cnt1721293795181;
3339
+ counter-reset: cnt1721303344884;
3340
3340
  }
3341
3341
  .hyphens-auto {
3342
3342
  -webkit-hyphens: auto;
@@ -3734,7 +3734,7 @@ article.indexTextDS .indexTextHighlighted .link {
3734
3734
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3735
3735
  }
3736
3736
  .-ordered {
3737
- counter-increment: cnt1721293795181 1;
3737
+ counter-increment: cnt1721303344884 1;
3738
3738
  }
3739
3739
  .-ordered::before {
3740
3740
  position: absolute;
@@ -3750,7 +3750,7 @@ article.indexTextDS .indexTextHighlighted .link {
3750
3750
  letter-spacing: .0125em;
3751
3751
  --tw-text-opacity: 1;
3752
3752
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3753
- content: counter(cnt1721293795181);
3753
+ content: counter(cnt1721303344884);
3754
3754
  }
3755
3755
  /*! ****************************/
3756
3756
  /*! DataPolicy stuff */
@@ -192,31 +192,25 @@ const DataPolicySettings = function (context) {
192
192
  readAppSettingsButtonCookie()
193
193
  if (appSettingsCookie['hidePrivacySettingsButton'] === true) {
194
194
  settingsButton.classList.add('hidden')
195
- document.querySelectorAll('.js-content-settings-button').forEach(function(jscontentSettingsButton) {
196
-
197
- jscontentSettingsButton.classList.add('hidden')
198
-
199
- });
200
- document.querySelectorAll('.js-settings-button-inner').forEach(function(jsSettingsButton) {
201
-
195
+ document.querySelectorAll('.js-settings-inner-button').forEach(function(jsSettingsButton) {
202
196
  jsSettingsButton.classList.add('hidden')
203
-
197
+ });
198
+ document.querySelectorAll('.js-content-settings-button').forEach(function(jsContentSettingsButton) {
199
+ jsContentSettingsButton.style.display = 'none'
204
200
  });
205
201
  } else {
206
202
  settingsButton.classList.remove('hidden')
207
- document.querySelectorAll('.js-content-settings-button').forEach(function(jscontentSettingsButton) {
208
- if(jscontentSettingsButton.classList.contains('hidden')) {
209
- jscontentSettingsButton.classList.remove('hidden')
210
- }
211
- });
212
- document.querySelectorAll('.js-settings-button-inner').forEach(function(jsSettingsButton) {
213
- if(jscontentSettingsButton.classList.contains('hidden')) {
203
+ document.querySelectorAll('.js-settings-inner-button').forEach(function(jsSettingsButton) {
204
+ if(jsSettingsButton.classList.contains('hidden')) {
214
205
  jsSettingsButton.classList.remove('hidden')
215
206
  }
216
207
  });
208
+ document.querySelectorAll('.js-content-settings-button').forEach(function(jsContentSettingsButton) {
209
+ if(!jsContentSettingsButton.classList.contains('hidden')){
210
+ jsContentSettingsButton.style.display = 'inline-block'
211
+ }
212
+ });
217
213
  }
218
- } else {
219
-
220
214
  }
221
215
  }
222
216
 
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.82.10",
9
+ "version": "1.82.11",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -192,31 +192,25 @@ const DataPolicySettings = function (context) {
192
192
  readAppSettingsButtonCookie()
193
193
  if (appSettingsCookie['hidePrivacySettingsButton'] === true) {
194
194
  settingsButton.classList.add('hidden')
195
- document.querySelectorAll('.js-content-settings-button').forEach(function(jscontentSettingsButton) {
196
-
197
- jscontentSettingsButton.classList.add('hidden')
198
-
199
- });
200
- document.querySelectorAll('.js-settings-button-inner').forEach(function(jsSettingsButton) {
201
-
195
+ document.querySelectorAll('.js-settings-inner-button').forEach(function(jsSettingsButton) {
202
196
  jsSettingsButton.classList.add('hidden')
203
-
197
+ });
198
+ document.querySelectorAll('.js-content-settings-button').forEach(function(jsContentSettingsButton) {
199
+ jsContentSettingsButton.style.display = 'none'
204
200
  });
205
201
  } else {
206
202
  settingsButton.classList.remove('hidden')
207
- document.querySelectorAll('.js-content-settings-button').forEach(function(jscontentSettingsButton) {
208
- if(jscontentSettingsButton.classList.contains('hidden')) {
209
- jscontentSettingsButton.classList.remove('hidden')
210
- }
211
- });
212
- document.querySelectorAll('.js-settings-button-inner').forEach(function(jsSettingsButton) {
213
- if(jscontentSettingsButton.classList.contains('hidden')) {
203
+ document.querySelectorAll('.js-settings-inner-button').forEach(function(jsSettingsButton) {
204
+ if(jsSettingsButton.classList.contains('hidden')) {
214
205
  jsSettingsButton.classList.remove('hidden')
215
206
  }
216
207
  });
208
+ document.querySelectorAll('.js-content-settings-button').forEach(function(jsContentSettingsButton) {
209
+ if(!jsContentSettingsButton.classList.contains('hidden')){
210
+ jsContentSettingsButton.style.display = 'inline-block'
211
+ }
212
+ });
217
213
  }
218
- } else {
219
-
220
214
  }
221
215
  }
222
216