@salesforcedevs/docs-components 1.34.4-topic-alpha.1 → 1.34.4-topic-alpha.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.34.4-topic-alpha.1",
3
+ "version": "1.34.4-topic-alpha.2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -61,6 +61,7 @@
61
61
  options={menuOptions}
62
62
  placement="bottom-end"
63
63
  width-mode="fit-content"
64
+ show-option-icons
64
65
  onchange={handleMenuSelect}
65
66
  onopen={handleMenuOpen}
66
67
  onclose={handleMenuClose}
@@ -2,11 +2,8 @@
2
2
 
3
3
  /* NOTE: doc-version-picker-width width variable is used by both dx-button and dx-dropdown to maintain a consistent width. */
4
4
  :host {
5
- --dx-c-dropdown-option-font-weight: normal;
6
- --dx-c-dropdown-option-label-color: var(--dx-g-gray-10);
7
- --dx-c-dropdown-option-padding: var(--dx-g-spacing-sm)
8
- var(--dx-g-spacing-lg);
9
- --dx-c-popover-padding: var(--dx-g-spacing-sm) 0;
5
+ /* Menu labels wrap; break long unspaced labels instead of overflowing. */
6
+ --dx-c-dropdown-option-overflow-wrap: anywhere;
10
7
  --popover-container-open-transform: translateY(4px);
11
8
  }
12
9
 
@@ -112,24 +109,11 @@ dx-type-badge.not-latest-badge {
112
109
  * Small "dot" variant (opt-in via `small`). Additive
113
110
  * ------------------------------------------------------------------ */
114
111
 
115
- /* Option padding is sm both axes: the small menu tracks the ~104px trigger, so
116
- the default 24px horizontal would crowd the labels. */
112
+ /* The small menu hugs its longest label but never grows wider than the sidebar
113
+ content (--doc-version-picker-width, set by the sidebar). Labels wrap only at
114
+ that width. The large menu always matches its trigger (width-mode="full"). */
117
115
  .version-picker-dropdown-small {
118
- --dx-c-dropdown-option-font-size: var(--dx-g-text-xs);
119
- --dx-c-dropdown-option-padding: var(--dx-g-spacing-sm)
120
- var(--dx-g-spacing-sm);
121
- --dx-c-dropdown-option-border-radius: 0;
122
- --dx-c-popover-border: none;
123
-
124
- /* Hug the labels (down to the shortest) but never wider than the ToC
125
- content: 296px on desktop, and on the smallest breakpoint the sidebar
126
- variable grows with the viewport up to 720px. Long labels wrap inside
127
- that cap. */
128
116
  --dx-c-dropdown-menu-max-width: var(--doc-version-picker-width, 296px);
129
- --dx-c-dropdown-fit-white-space: normal;
130
- --dx-c-dropdown-fit-overflow: hidden;
131
- --dx-c-dropdown-fit-text-overflow: clip;
132
- --dx-c-dropdown-option-overflow-wrap: anywhere;
133
117
  }
134
118
 
135
119
  .version-picker-button-small {