Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlaki committed Oct 29, 2023
2 parents 2328560 + 461150d commit f5e15e5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/product/edit/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/_data/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ module.exports = {

return response;
},

/**
* Return a boolean or a string value based on an active descandant element.
* Return a boolean or a string value based on an active descendant element.
* @param {Object} block
* @param {String} pageUrl
* @param {Boolean} logical
* @returns
*/
getLinkActiveParent(block, pageUrl, logical = true) {
let response = '';
let found = false;

found = block.items.find(element => element.url === pageUrl);
Expand All @@ -39,9 +39,9 @@ module.exports = {
}

if (!logical) {
return response = found ? 'open' : 'closed';
return found ? 'open' : 'closed';
}

return response = found ? true : false;
return found;
},
};
2 changes: 1 addition & 1 deletion src/_includes/partial/form/range.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<label class="form-label" for="{{ range.id }}">{{ range.label }}</label>
<div class="range-group" x-data="{
value: {{ range.value }}
}">
}">
<div class="range-group__inner">
<button
type="button"
Expand Down
2 changes: 1 addition & 1 deletion src/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ breadcrumbs:
</div>
<div class="data-group">
<p class="data-group__title">Phone</p>
<p class="data-group__content">+00 36 555 66 44</p>
<p class="data-group__content">+36 555 66 44</p>
</div>
<div class="data-group">
<p class="data-group__title">Bio</p>
Expand Down
2 changes: 1 addition & 1 deletion src/profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ breadcrumbs:
</div>
<div class="form-group--row">
<label class="form-label" for="your-phone">Phone</label>
<input class="form-control" id="your-phone" name="your-phone" type="text" value="+00 36 555 66 44" />
<input class="form-control" id="your-phone" name="your-phone" type="text" value="+36 555 66 44" />
</div>
<div class="form-group--row">
<label class="form-label" for="your-bio">Bio</label>
Expand Down

0 comments on commit f5e15e5

Please sign in to comment.