Skip to content

Commit

Permalink
fix undefined error in merch-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
yesil committed Nov 12, 2024
1 parent 401da98 commit a4bb64b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/deps/mas/merch-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ import{LitElement as ie}from"../lit-all.min.js";import{LitElement as Ct,html as
background-position: ${this.card.theme.dir==="ltr"?"left":"right"};
`}return""}get secureLabelFooter(){let t=this.card.secureLabel?R`<span class="secure-transaction-label"
>${this.card.secureLabel}</span
>`:"";return R`<footer>${t}<slot name="footer"></slot></footer>`}async adjustTitleWidth(){let t=this.card.getBoundingClientRect().width,e=this.card.badgeElement?.getBoundingClientRect().width||0;t===0||e===0||this.card.style.setProperty("--consonant-merch-card-heading-xs-max-width",`${Math.round(t-e-16)}px`)}postCardUpdateHook(){}connectedCallbackHook(){}disconnectedCallbackHook(){}renderLayout(){}get aemFragmentMapping(){}};import{html as V,css as At}from"../lit-all.min.js";function u(r,t={},e){let o=document.createElement(r);e instanceof HTMLElement?o.appendChild(e):o.innerHTML=e;for(let[a,s]of Object.entries(t))o.setAttribute(a,s);return o}function $(){return window.matchMedia("(max-width: 767px)").matches}function rt(){return window.matchMedia("(max-width: 1024px)").matches}var ot="merch-offer-select:ready",at="merch-card:ready",nt="merch-card:action-menu-toggle";var F="merch-storage:change",G="merch-quantity-selector:change";var O="aem:load",N="aem:error",ct="mas:ready",it="mas:error";var st=`
>`:"";return R`<footer>${t}<slot name="footer"></slot></footer>`}async adjustTitleWidth(){let t=this.card.getBoundingClientRect().width,e=this.card.badgeElement?.getBoundingClientRect().width||0;t===0||e===0||this.card.style.setProperty("--consonant-merch-card-heading-xs-max-width",`${Math.round(t-e-16)}px`)}postCardUpdateHook(){}connectedCallbackHook(){}disconnectedCallbackHook(){}renderLayout(){}get aemFragmentMapping(){}};import{html as V,css as At}from"../lit-all.min.js";function u(r,t={},e=""){let o=document.createElement(r);e instanceof HTMLElement?o.appendChild(e):o.innerHTML=e;for(let[a,s]of Object.entries(t))o.setAttribute(a,s);return o}function $(){return window.matchMedia("(max-width: 767px)").matches}function rt(){return window.matchMedia("(max-width: 1024px)").matches}var ot="merch-offer-select:ready",at="merch-card:ready",nt="merch-card:action-menu-toggle";var F="merch-storage:change",G="merch-quantity-selector:change";var O="aem:load",N="aem:error",ct="mas:ready",it="mas:error";var st=`
:root {
--consonant-merch-card-catalog-width: 276px;
--consonant-merch-card-catalog-icon-size: 40px;
Expand Down
2 changes: 1 addition & 1 deletion libs/features/mas/mas/dist/mas.js

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

2 changes: 1 addition & 1 deletion libs/features/mas/web-components/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const getSlotText = (element, name) =>
* @param {*} content
* @returns {HTMLElement}
*/
export function createTag(tag, attributes = {}, content) {
export function createTag(tag, attributes = {}, content = '') {
const element = document.createElement(tag);
if (content instanceof HTMLElement) {
element.appendChild(content);
Expand Down

0 comments on commit a4bb64b

Please sign in to comment.