Skip to content
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

MWPW-151392: Sorting button/menu issues on Mobile #2690

Merged
merged 13 commits into from
Aug 21, 2024
3 changes: 2 additions & 1 deletion libs/features/spectrum-web-components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This repository provides individual Spectrum Web Components for consumption in S
This feature is mainly designed for consumption by the different merch blocks.

Please know that SWC is heavy, impacts page performance and is not suitable for cases where a Consonant component is already available in Milo, e.g: button.
Be aware that the polyfills from the `custom-element.js` must be loaded before SWC dependencies, otherwise if may cause issues (specifically in Safari).
mirafedas marked this conversation as resolved.
Show resolved Hide resolved

To load SWC components, do as follows:

Expand All @@ -13,7 +14,7 @@ await Promise.all([
import(`${base}/features/spectrum-web-components/dist/theme.js`),
import(`${base}/features/spectrum-web-components/dist/button.js`),
import(`${base}/features/spectrum-web-components/dist/search.js`),
]);
]);custom
mirafedas marked this conversation as resolved.
Show resolved Hide resolved
```
On the page embedd your SWCs in `sp-theme` component and append to the DOM

Expand Down
Loading