@commmerce/ui 1.20.1 → 1.20.3

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/README.md CHANGED
@@ -22,8 +22,10 @@ import '@commmerce/ui'; // registers every <cm-*> element
22
22
  Or without a build step, pinned to a version:
23
23
 
24
24
  ```html
25
- <link rel="stylesheet" href="https://commmerce.com/commmerceui/v/VERSION/tokens.css">
26
- <script type="module" src="https://commmerce.com/commmerceui/v/VERSION/cdn.js"></script>
25
+ <link rel="stylesheet" href="https://cdn.commmerce.com/commmerceui/v/VERSION/fonts.css">
26
+ <link rel="stylesheet" href="https://cdn.commmerce.com/commmerceui/v/VERSION/tokens.css">
27
+ <script type="module" src="https://cdn.commmerce.com/commmerceui/v/VERSION/cdn.js"></script>
28
+ <!-- Also on jsDelivr: https://cdn.jsdelivr.net/npm/@commmerce/ui@VERSION/dist/cdn.js -->
27
29
  ```
28
30
 
29
31
  ## Use
package/dist/cdn.js CHANGED
@@ -4210,9 +4210,12 @@ ${t.label}</button>
4210
4210
  .nav {
4211
4211
  position: sticky; inset-block-start: var(--_header); box-sizing: border-box;
4212
4212
  max-block-size: calc(var(--cm-app-frame-height, 100dvh) - var(--_header));
4213
- overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
4213
+ overflow-y: auto; overscroll-behavior: contain;
4214
+ /* Scrolls, but no scrollbar: a classic (always-on) scrollbar takes width and shifts the layout. */
4215
+ scrollbar-width: none;
4214
4216
  padding: var(--_gutter); padding-inline-end: 0;
4215
4217
  }
4218
+ .nav::-webkit-scrollbar { display: none; }
4216
4219
  .frame { --_gutter: var(--cm-app-frame-gutter, var(--cm-space-20)); }
4217
4220
  main { display: block; min-inline-size: 0; padding-block-end: calc(var(--_bottom) + var(--cm-app-frame-bottom-offset, 0px)); }
4218
4221
  /* Panel: the page in a white rounded card with a gutter on the grey page (the merchant dashboard frame). */
@@ -196,9 +196,12 @@ CmAppFrame.styles = [
196
196
  .nav {
197
197
  position: sticky; inset-block-start: var(--_header); box-sizing: border-box;
198
198
  max-block-size: calc(var(--cm-app-frame-height, 100dvh) - var(--_header));
199
- overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
199
+ overflow-y: auto; overscroll-behavior: contain;
200
+ /* Scrolls, but no scrollbar: a classic (always-on) scrollbar takes width and shifts the layout. */
201
+ scrollbar-width: none;
200
202
  padding: var(--_gutter); padding-inline-end: 0;
201
203
  }
204
+ .nav::-webkit-scrollbar { display: none; }
202
205
  .frame { --_gutter: var(--cm-app-frame-gutter, var(--cm-space-20)); }
203
206
  main { display: block; min-inline-size: 0; padding-block-end: calc(var(--_bottom) + var(--cm-app-frame-bottom-offset, 0px)); }
204
207
  /* Panel: the page in a white rounded card with a gutter on the grey page (the merchant dashboard frame). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commmerce/ui",
3
- "version": "1.20.1",
3
+ "version": "1.20.3",
4
4
  "description": "Commmerce UI web components: build apps that feel native to the Commmerce admin. Works in plain HTML, React, Vue and server-rendered pages.",
5
5
  "keywords": [
6
6
  "web-components",
@@ -128,8 +128,8 @@
128
128
  "test": "vitest run"
129
129
  },
130
130
  "dependencies": {
131
- "@commmerce/icons": "1.20.1",
132
- "@commmerce/tokens": "1.20.1",
131
+ "@commmerce/icons": "1.20.3",
132
+ "@commmerce/tokens": "1.20.3",
133
133
  "lit": "3.2.1"
134
134
  },
135
135
  "devDependencies": {