8000 MWPW-163479: MAS - Switch to Spectrum CSS from SWC by yesil · Pull Request #3289 · adobecom/milo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MWPW-163479: MAS - Switch to Spectrum CSS from SWC #3289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 79 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
2ae5836
MWPW-162385 add wcsApiKey attribute
npeltier Nov 14, 2024
541f98e
Merge branch 'stage' of github.com:adobecom/milo into MWPW-162385
npeltier Nov 15, 2024
e445eed
MWPW-161355: Update MAS documentation (#3135)
yesil Nov 18, 2024
b99fc0e
Merge branch 'ccd' into MWPW-162385
npeltier Nov 19, 2024
935341c
MWPW-161845: basic analytics on mas cards (#3206)
3ch023 Nov 19, 2024
6f22877
MWPW-159191: MAS Freyja support (#3209)
yesil Nov 21, 2024
da55e2f
MWPW-161804: Merch card style auditing (#3216)
Axelcureno Nov 21, 2024
ec2d95f
Added space after price recurrence label for display-per-unit prices …
st-angelo-adobe Nov 21, 2024
08c281e
Merge branch 'main' of github.com:adobecom/milo into MWPW-162385
npeltier Nov 22, 2024
2dd8fd8
adding example
npeltier Nov 22, 2024
df69264
Merge branch 'ccd' of github.com:adobecom/milo into MWPW-162385
npeltier Nov 22, 2024
4c688d0
MWPW-162933: merge mas modules (#3248)
yesil Nov 26, 2024
f9680ce
MWPW-160755 - add tests for CCD cards (#3256)
afmicka Nov 26, 2024
2b8083b
Merge branch 'ccd' of github.com:adobecom/milo into MWPW-162385
npeltier Nov 27, 2024
3bcaa80
MWPW-162385 add wcsApiKey attribute (#3203)
afmicka Nov 28, 2024
211c7d4
MWPW-163041: analytics fix (#3257)
3ch023 Nov 29, 2024
bcaa237
Fix overriding of border style on merch cards (#3278)
st-angelo-adobe Nov 29, 2024
94a424e
Bump timeout from 2 to 10 sec (#3282)
3ch023 Nov 29, 2024
ea01ee0
MWPW-163479: Switch to Spectrum CSS from SWC
yesil Dec 2, 2024
0155146
update doc style
yesil Dec 2, 2024
e904710
update doc style
yesil Dec 2, 2024
8ef2ecf
update doc style
yesil Dec 2, 2024
176d1f7
update doc style
yesil Dec 2, 2024
6fbef16
update doc style
yesil Dec 2, 2024
6d87b20
update doc style
yesil Dec 2, 2024
0d8ca95
Update styles
yesil Dec 2, 2024
a52d00a
update docs
yesil Dec 2, 2024
f50bfa9
Keep SWC logic as an option
yesil Dec 3, 2024
49ae33e
MWPW-161645: lana logging for CCD (#3271)
yesil Dec 3, 2024
2fb80c9
fix gaps with Spectrum CSS support
yesil Dec 4, 2024
6ecca9a
Merge remote-tracking branch 'upstream/ccd' into MWPW-163479
yesil Dec 4, 2024
7877dbf
update version
yesil Dec 4, 2024
1946ac7
fix gaps reported by ccd teamm
yesil Dec 5, 2024
17d0906
address gaps
yesil Dec 5, 2024
3ffabfa
address gaps
yesil Dec 5, 2024
fa5d083
address gaps
yesil Dec 5, 2024
1bad4d2
address gaps
yesil Dec 5, 2024
cae858b
address gaps
yesil Dec 5, 2024
baf80b4
fix for MWPW-163718
yesil Dec 6, 2024
c79ce78
addressed design gaps.
yesil Dec 6, 2024
c5f27bf
bump the version
yesil Dec 6, 2024
68a4328
Merge remote-tracking branch 'upstream/stage' into ccd
3ch023 Dec 6, 2024
dc0f9c7
add build artifacts
3ch023 Dec 6, 2024
796ef80
Update colors based on CCD app
yesil Dec 9, 2024
f05b400
Update colors based on CCD app
yesil Dec 9, 2024
528817d
build without source maps
yesil Dec 9, 2024
f738897
Merge branch 'ccd' of github.com:adobecom/milo into MWPW-163479
yesil Dec 9, 2024
5b9a917
update Nala tests
afmicka Dec 9, 2024
584bc90
fix lint
afmicka Dec 9, 2024
0fe6648
reset box-sizing for merch-card elements
yesil Dec 9, 2024
a92795d
Merge branch 'MWPW-163479' of github.com:adobecom/milo into MWPW-163479
yesil Dec 9, 2024
ef8bf8d
Force box-sizing on merch-card
yesil Dec 10, 2024
1542e75
update styles: box-sizing
yesil Dec 10, 2024
7d39fd0
Merge branch 'stage' of github.com:adobecom/milo into MWPW-163479
yesil Dec 10, 2024
6207c0f
fix ccd gallery
yesil Dec 10, 2024
da77c52
update version
yesil Dec 10, 2024
d52f154
limit ccd price style to their variants
yesil Dec 10, 2024
4f632c2
limit ccd price style to suggest variant
yesil Dec 10, 2024
3b5f734
preserve white spaces in prices section
yesil Dec 11, 2024
8235b2a
fix spacing in price
yesil Dec 11, 2024
89a2a94
Update version
yesil Dec 11, 2024
1623cae
Update doc
yesil Dec 11, 2024
145627c
update cards
yesil Dec 11, 2024
6b8e8da
update gallery styles
yesil Dec 11, 2024
3cd086a
make the gallery responsive
yesil Dec 11, 2024
b170145
align slice card ctas
yesil Dec 11, 2024
ced06ed
cards resize responsively
yesil Dec 11, 2024
c2bdc87
fix 1x of gap issue
yesil Dec 11, 2024
a7b12d7
fix description text alignement
yesil Dec 11, 2024
2c01de0
fix gaps in minimal widths
yesil Dec 11, 2024
355e8eb
fix the gallery layout
yesil Dec 11, 2024
e6f5508
Merge branch 'stage' of github.com:adobecom/milo into MWPW-163479
yesil Dec 12, 2024
d8803ca
Fix strikethrough price color in promos
yesil Dec 12, 2024
abb166f
Update nala tests
yesil Dec 12, 2024
1f414a6
MWPW-164177: clean up card style on fragment
yesil Dec 12, 2024
4127767
Added a new section to ccd gallery
yesil Dec 12, 2024
5d812fa
update mas version
yesil Dec 12, 2024
69cfa63
fix missing default spectrum css button style
yesil Dec 17, 2024
e4856cb
Merge branch 'stage' of github.com:adobecom/milo into MWPW-163479
yesil Jan 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
512 changes: 251 additions & 261 deletions libs/deps/mas/mas.js

Large diffs are not rendered by default.

618 changes: 304 additions & 314 deletions libs/deps/mas/merch-card.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions libs/deps/mas/merch-icon.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
var g=Object.defineProperty;var a=(i,t,s)=>t in i?g(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var h=(i,t,s)=>a(i,typeof t!="symbol"?t+"":t,s);import{LitElement as m,html as r,css as l}from"../lit-all.min.js";var e=class extends m{constructor(){super(),this.size="m",this.alt=""}render(){let{href:t}=this;return t?r`<a href="${t}">
var g=Object.defineProperty;var m=(i,t,h)=>t in i?g(i,t,{enumerable:!0,configurable:!0,writable:!0,value:h}):i[t]=h;var r=(i,t,h)=>m(i,typeof t!="symbol"?t+"":t,h);import{LitElement as a,html as s,css as d}from"../lit-all.min.js";var e=class extends a{constructor(){super(),this.size="m",this.alt=""}render(){let{href:t}=this;return t?s`<a href="${t}">
<img src="${this.src}" alt="${this.alt}" loading="lazy" />
</a>`:r` <img src="${this.src}" alt="${this.alt}" loading="lazy" />`}};h(e,"properties",{size:{type:String,attribute:!0},src:{type:String,attribute:!0},alt:{type:String,attribute:!0},href:{type:String,attribute:!0}}),h(e,"styles",l`
</a>`:s` <img src="${this.src}" alt="${this.alt}" loading="lazy" />`}};r(e,"properties",{size:{type:String,attribute:!0},src:{type:String,attribute:!0},alt:{type:String,attribute:!0},href:{type:String,attribute:!0}}),r(e,"styles",d`
:host {
--img-width: 32px;
--img-height: 32px;
display: block;
width: var(--img-width);
height: var(--img-height);
width: var(--mod-img-width, var(--img-width));
height: var(--mod-img-height, var(--img-height));
}

:host([size='s']) {
Expand All @@ -25,7 +25,7 @@ var g=Object.defineProperty;var a=(i,t,s)=>t in i?g(i,t,{enumerable:!0,configura
}

img {
width: var(--img-width);
height: var(--img-height);
width: var(--mod-img-width, var(--img-width));
height: var(--mod-img-height, var(--img-height));
}
`);customElements.define("merch-icon",e);export{e as default};
512 changes: 251 additions & 261 deletions libs/features/mas/dist/mas.js

Large diffs are not rendered by default.

98 changes: 27 additions & 71 deletions libs/features/mas/docs/ccd.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@
<meta charset="UTF-8">
<title>CCD Gallery</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="spectrum.css">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably mention it in mas or mas.js documentation, that consumer needs to bring their spectrum css

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is this already

https://github.com/adobecom/milo/pull/3289/files#diff-d6a960cce00021b9cdcd7700511c82fae250fb5ac37601f38cefe135814f66a7R9

And we have ccd gallery as an example with Spectrum CSS. Do you think we need to provide more details?

F438
Copy link
Contributor
@3ch023 3ch023 Dec 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, you are right, its fine for now.
i think in future i want to contribute some 'Getting Started' tutorial, with simple 4 steps, there we can mention it. Smthg like

  • include mas.js
  • include </mas-commerce-service>
  • include spectrum css
  • include </merch-card>

for dev's running POC it will be great to not need to go through whole doc. But this is a plan for later, not for this PR

<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://p.typekit.net/p.css?s=1&k=hah7vzn&ht=tk&f=7180.7181.7182.7183.22474.22749.22750.22751.22753&a=8634977&app=typekit&e=css">
<link rel="stylesheet" href="https://use.typekit.net/hah7vzn.css">
<script src="../../spectrum-web-components/dist/shared.js" type="module"></script>
<script src="../../spectrum-web-components/dist/button.js" type="module"></script>
<script src="../../spectrum-web-components/dist/base.js" type="module"></script>
<script src="../../spectrum-web-components/dist/icons-ui.js" type="module"></script>
<script src="../../spectrum-web-components/dist/icon.js" type="module"></script>
<script src="../../spectrum-web-components/dist/icons/cross.js" type="module"></script>
<script src="../../spectrum-web-components/dist/icons/checkmark.js" type="module"></script>
<script src="/libs/deps/lit-all.min.js" type="module"></script>

<script>
Expand All @@ -32,17 +26,18 @@
meta.name = 'aem-base-url';
meta.content = `https://${env}.adobe.com`;
document.head.appendChild(meta);

const params = new URLSearchParams(document.location.search);
function toggleTheme(theme) {
document.body.className = 'spectrum spectrum--medium';
document.body.classList.add(`spectrum--${theme}`);
params.set('theme', theme);
history.replaceState(null, '', `${location.pathname}?${params}`);
}
</script>
<script type="module" src="../dist/mas.js"></script>

<script type="module">
// theme
const params = new URLSearchParams(document.location.search);
const darkTheme = params?.get('theme')?.toLowerCase() === 'dark';
const theme = document.createElement('script');
theme.setAttribute('src', `../../spectrum-web-components/dist/themes/${darkTheme ? 'dark' : 'light'}.js`);
theme.setAttribute('type', `module`);
document.head.appendChild(theme);
// mas-commerce-service
const masCommerceService = document.createElement('mas-commerce-service');
['locale','language','env'].forEach((attribute) => {
Expand All @@ -56,91 +51,52 @@
</script>
</head>

<body>
<body class="spectrum spectrum--medium spectrum--light">
<main>
<sp-theme color="light" scale="medium">
<div class="gallery-content">

<h1 id="ccd-gallery" tabindex="-1">CCD Gallery <a class="header-anchor" href="#ccd-gallery" href="#ccd-gallery" title="Permalink to this heading">#</a></h1>
Switch Theme: <a href="?theme=dark">Dark</a> OR <a href="?theme=light">Light</a>
Switch Theme: <a class="spectrum-Link pectrum-Link--secondary" href="javascript:toggleTheme('darkest');">Darkest</a> OR <a class="spectrum-Link pectrum-Link--secondary" href="javascript:toggleTheme('light');">Light</a>

<h2 id="ccd-slice-card" tabindex="-1">CCD Slice Card <a class="header-anchor" href="#ccd-slice-card" href="#ccd-slice-card" title="Permalink to this heading">#</a></h2>
<div class="gallery-grid-3">
<div>
<h3>Percentage</h3>
<h2 id="ccd-slice-card" tabindex="-1">CCD Slice Cards <a class="header-anchor" href="#ccd-slice-card" title="Permalink to this heading">#</a></h2>
<div class="three-merch-cards ccd-slice">
<merch-card><aem-fragment fragment="0ef2a804-e788-4959-abb8-b4d96a18b0ef"></aem-fragment></merch-card>
<merch-card><aem-fragment fragment="c13897c7-de77-4e45-b23b-eec9fd66cad1"></aem-fragment></merch-card>
</div>
<div>
<h3>Two icons & pricing</h3>
<merch-card><aem-fragment fragment="58c7906f-70a6-4e2b-bc29-257ff2ade513"></aem-fragment></merch-card>
</div>
<div>
<h3>See Terms link</h3>
<merch-card><aem-fragment fragment="51c23f28-504f-450d-9764-0e60f1e279b2"></aem-fragment></merch-card>
</div>
<div>
<h3>Arbitrary Text</h3>
<merch-card><aem-fragment fragment="2a293069-1f9a-45ae-9840-2fa0303fe685"></aem-fragment></merch-card>
</div>
<div>
<h3>With Badge</h3>
<merch-card><aem-fragment fragment="3d26df5b-0784-4967-8149-8a9e59131084"></aem-fragment></merch-card>
</div>
</div>

<h2 id="ccd-slice-wide-card" tabindex="-1">CCD Slice Wide Card <a class="header-anchor" href="#ccd-slice-wide-card" href="#ccd-slice-wide-card" title="Permalink to this heading">#</a></h2>
<div class="gallery-grid-1">
<merch-card><aem-fragment fragment="bdf40d06-5914-4f1f-aa10-77c5676fe671"></aem-fragment></merch-card>
<merch-card><aem-fragment fragment="31205553-b453-4c9e-a2ef-7b6aa7bfdc72"></aem-fragment></merch-card>
<merch-card><aem-fragment fragment="f3e5f2e7-df41-4300-87b9-465b3ad11abc"></aem-fragment></merch-card>
<merch-card><aem-fragment fragment="c25b20cc-e8a3-4854-b94f-51eec7d0ec25"></aem-fragment></merch-card>
<merch-card><aem-fragment fragment="6b3c6c4e-e19f-4d08-914f-fcfd9f77ca14"></aem-fragment></merch-card>
</div>

<h2 id="ccd-suggested-card" tabindex="-1">CCD Suggested Card <a class="header-anchor" href="#ccd-suggested-card" href="#ccd-suggested-card" title="Permalink to this heading">#</a></h2>
<div class="gallery-grid-3">
<div>
<h3>With eyebrow</h3>
<h2 id="ccd-suggested-card" tabindex="-1">CCD Suggested Cards <a class="header-anchor" href="#ccd-suggested-card" title="Permalink to this heading">#</a></h2>
<div class="three-merch-cards ccd-suggested">
<merch-card><aem-fragment fragment="0a2ac7c9-1965-488e-beca-856849305313"></aem-fragment></merch-card>
</div>
<div>
<h3>See Terms link</h3>
<merch-card><aem-fragment fragment="549f6981-f5c8-4512-b41c-313d60f375b2"></aem-fragment></merch-card>
</div>
<div>
<h3>No eyebrow, price with term</h3>
<merch-card><aem-fragment fragment="8b198434-f32d-4a77-8be0-cd6b9f7155b1"></aem-fragment></merch-card>
</div>
<div>
<h3>With Image</h3>
<merch-card><aem-fragment fragment="cdfae8c5-4129-43bc-a283-9ce46d07e21f"></aem-fragment></merch-card>
</div>
<div>
<h3>Starting at price & see terms</h3>
<merch-card><aem-fragment fragment="33c8f437-3c39-48cc-8afd-938a13af5732"></aem-fragment></merch-card>
</div>
<div>
<h3>Image & longer price</h3>
<merch-card><aem-fragment fragment="45783ec8-ed85-4595-a445-3f018ac4ad9d"></aem-fragment></merch-card>
</div>
<div>
<h3>Wide Image with eyebrow</h3>
<merch-card><aem-fragment fragment="6217fb6d-e793-4235-af70-6f82401fc5de"></aem-fragment></merch-card>
</div>
<div>
<h3>Wide strip with seat text</h3>
<merch-card><aem-fragment fragment="d23182d8-fc92-483d-bcfe-d1fe3d3ce737"></aem-fragment></merch-card>
</div>
</div>
</div>
</sp-theme>
<script type="module">
if (new URLSearchParams(document.location.search)?.get('theme')?.toLowerCase() === 'dark') {
document.querySelector('sp-theme').setAttribute('color', 'dark');
}
</script>

<h2 id="various-cards" tabindex="-1">Free to update cards <a class="header-anchor" href="#various-cards" title="Permalink to this heading">#</a></h2>
<div class="flex-cards">
<merch-card><aem-fragment fragment="42e9a6bf-3b94-4b13-a2ba-184591308096"></aem-fragment></merch-card>
<merch-card><aem-fragment fragment="9744936c-94e4-4e78-806b-58dd63d02fd7"></aem-fragment></merch-card>
<merch-card><aem-fragment fragment="1ccfef82-9870-428c-b9fc-35770a21ae4f"></aem-fragment></merch-card>
</div>
</div>
</main>
<script>
const theme = params.get('theme');
if (theme) toggleTheme(theme);
</script>
</body>

</html>
13 changes: 5 additions & 8 deletions libs/features/mas/docs/checkout-link.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<title>M@S Web Components</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="module" src="../../../deps/custom-elements.js"></script>
<link rel="stylesheet" href="spectrum.css">
<link rel="stylesheet" href="https://use.typekit.net/hah7vzn.css">

<script>
Expand All @@ -16,10 +17,6 @@
document.head.appendChild(meta);
}
</script>
<!-- Include your custom element script as an ES6 module -->
<script src="../../spectrum-web-components/dist/theme.js" type="module"></script>
<script src="../../spectrum-web-components/dist/action-button.js" type="module"></script>
<script src="../../spectrum-web-components/dist/button.js" type="module"></script>
<script type="module" src="../dist/mas.js"></script>

<script type="module">
Expand All @@ -38,9 +35,9 @@
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<sp-theme color="light" scale="medium">
<h1 id="checkout-link" tabindex="-1">checkout-link <a class="header-anchor" href="#checkout-link" href="#checkout-link" title="Permalink to this heading">#</a></h1>
<main class="spectrum spectrum--medium spectrum--light">
<div class="container">
<h1 id="checkout-link" tabindex="-1">checkout-link <a class="header-anchor" href="#checkout-link" href="#checkout-link" title="Permalink to this heading">#</a></h1>
<h2 id="introduction" tabindex="-1">Introduction <a class="header-anchor" href="#introduction" href="#introduction" title="Permalink to this heading">#</a></h2>
<p>This custom element renders a checkout link supporting most of the features documented at <a href="https://wiki.corp.adobe.com/pages/viewpage.action?spaceKey=businessservices&amp;title=UCv3+Link+Creation+Guide.">https://wiki.corp.adobe.com/pages/viewpage.action?spaceKey=businessservices&amp;title=UCv3+Link+Creation+Guide.</a><br>
Sometimes a checkout-link can be also referred as placeholder, as it can be used as an inline link resolving at runtime.<br>
Expand Down Expand Up @@ -352,7 +349,7 @@ <h4 id="logs" tabindex="-1">Logs <a class="header-anchor" href="#logs" href="#lo
<pre><code id="log" class="language-html">
</code></pre>

</sp-theme>
</div>
</main>
<script type="module">
document.querySelectorAll('code.demo').forEach(el => {
Expand Down
6851 13 changes: 5 additions & 8 deletions libs/features/mas/docs/inline-price.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<title>M@S Web Components</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="module" src="../../../deps/custom-elements.js"></script>
<link rel="stylesheet" href="spectrum.css">
<link rel="stylesheet" href="https://use.typekit.net/hah7vzn.css">

<script>
Expand All @@ -16,10 +17,6 @@
document.head.appendChild(meta);
}
</script>
<!-- Include your custom element script as an ES6 module -->
<script src="../../spectrum-web-components/dist/theme.js" type="module"></script>
<script src="../../spectrum-web-components/dist/action-button.js" type="module"></script>
<script src="../../spectrum-web-components/dist/button.js" type="module"></script>
<script type="module" src="../dist/mas.js"></script>

<script type="module">
Expand All @@ -38,9 +35,9 @@
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<sp-theme color="light" scale="medium">
<h1 id="inline-price" tabindex="-1">inline-price <a class="header-anchor" href="#inline-price" href="#inline-price" title="Permalink to this heading">#</a></h1>
<main class="spectrum spectrum--medium spectrum--light">
<div class="container">
<h1 id="inline-price" tabindex="-1">inline-price <a class="header-anchor" href="#inline-price" href="#inline-price" title="Permalink to this heading">#</a></h1>
<h2 id="introduction" tabindex="-1">Introduction <a class="header-anchor" href="#introduction" href="#introduction" title="Permalink to this heading">#</a></h2>
<p>This custom element renders an inline price supporting various display options and configurations. It retrieves pricing information from WCS based on the provided Offer Selector ID.</p>
<p>See <a href="mas.html#terminology">MAS</a> to learn more.</p>
Expand Down Expand Up @@ -314,7 +311,7 @@ <h4 id="logs" tabindex="-1">Logs <a class="header-anchor" href="#logs" href="#lo
<pre><code id="log" class="language-html">
</code></pre>

</sp-theme>
</div>
</main>
<script type="module">
document.querySelectorAll('code.demo').forEach(el => {
Expand Down
13 changes: 5 additions & 8 deletions libs/features/mas/docs/mas.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<title>M@S Web Components</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="module" src="../../../deps/custom-elements.js"></script>
<link rel="stylesheet" href="spectrum.css">
<link rel="stylesheet" href="https://use.typekit.net/hah7vzn.css">

<script>
Expand All @@ -16,10 +17,6 @@
document.head.appendChild(meta);
}
</script>
<!-- Include your custom element script as an ES6 module -->
<script src="../../spectrum-web-components/dist/theme.js" type="module"></script>
<script src="../../spectrum-web-components/dist/action-button.js" type="module"></script>
<script src="../../spectrum-web-components/dist/button.js" type="module"></script>
<script type="module" src="../dist/mas.js"></script>

<script type="module">
Expand All @@ -38,9 +35,9 @@
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<sp-theme color="light" scale="medium">
<h1 id="merch-at-scale-(mas)" tabindex="-1">Merch At Scale (MAS) <a class="header-anchor" href="#merch-at-scale-(mas)" href="#merch-at-scale-(mas)" title="Permalink to this heading">#</a></h1>
<main class="spectrum spectrum--medium spectrum--light">
<div class="container">
<h1 id="merch-at-scale-(mas)" tabindex="-1">Merch At Scale (MAS) <a class="header-anchor" href="#merch-at-scale-(mas)" href="#merch-at-scale-(mas)" title="Permalink to this heading">#</a></h1>
<h2 id="table-of-contents" tabindex="-1">Table of Contents <a class="header-anchor" href="#table-of-contents" href="#table-of-contents" title="Permalink to this heading">#</a></h2>
<ol>
<li><a href="#introduction">Introduction</a></li>
Expand Down Expand Up @@ -105,7 +102,7 @@ <h2 id="analytics" tabindex="-1">Analytics <a class="header-anchor" href="#analy
<p>Example: if you have 5 cards with buy-now cta on your page, you can take a combination of merch-card daa-lh and link daa-ll:
${daa-lh}–${daa-ll}: will result in ‘phlt–buy-now-2’.</p>

</sp-theme>
</div>
</main>
<script type="module">
document.querySelectorAll('code.demo').forEach(el => {
Expand Down
13 changes: 5 additions & 8 deletions libs/features/mas/docs/mas.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<title>M@S Web Components</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="module" src="../../../deps/custom-elements.js"></script>
<link rel="stylesheet" href="spectrum.css">
<link rel="stylesheet" href="https://use.typekit.net/hah7vzn.css">

<script>
Expand All @@ -16,10 +17,6 @@
document.head.appendChild(meta);
}
</script>
<!-- Include your custom element script as an ES6 module -->
<script src="../../spectrum-web-components/dist/theme.js" type="module"></script>
<script src="../../spectrum-web-components/dist/action-button.js" type="module"></script>
<script src="../../spectrum-web-components/dist/button.js" type="module"></script>
<script type="module" src="../dist/mas.js"></script>

<script type="module">
Expand All @@ -38,9 +35,9 @@
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<sp-theme color="light" scale="medium">
<h1 id="mas.js" tabindex="-1">mas.js <a class="header-anchor" href="#mas.js" href="#mas.js" title="Permalink to this heading">#</a></h1>
<main class="spectrum spectrum--medium spectrum--light">
<div class="container">
<h1 id="mas.js" tabindex="-1">mas.js <a class="header-anchor" href="#mas.js" href="#mas.js" title="Permalink to this heading">#</a></h1>
<h2 id="introduction" tabindex="-1">Introduction <a class="header-anchor" href="#introduction" href="#introduction" title="Permalink to this heading">#</a></h2>
<p>This is a javasript library that enables M@S on any web surface.</p>
<p>mas.js includes the followings custom elements:</p>
Expand Down Expand Up @@ -634,7 +631,7 @@ <h3 id="supported-locales" tabindex="-1">Supported locales <a class="header-anch
</tbody>
</table>

</sp-theme>
</div>
</main>
<script type="module">
document.querySelectorAll('code.demo').forEach(el => {
Expand Down
Loading
Loading
0