@salesforcedevs/dx-components 1.40.5-topic-alpha.4 → 1.40.5-topic-alpha.6

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/dx-components",
3
- "version": "1.40.5-topic-alpha.4",
3
+ "version": "1.40.5-topic-alpha.6",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -306,20 +306,10 @@
306
306
  box-shadow: var(--dx-c-button-custom-border-shadow-hover, none);
307
307
  }
308
308
 
309
- /* While its menu is open, a custom button can show the focus ring. Off unless
310
- the active hooks are set (a select-style trigger, such as the version picker). */
311
- :host([aria-expanded="true"]) .button.variant_custom {
312
- outline: var(--dx-c-button-custom-focus-outline-active, none);
313
- outline-offset: var(--dx-c-button-custom-focus-offset-active, 0);
314
- box-shadow: var(
315
- --dx-c-button-custom-focus-shadow-active,
316
- var(--dx-c-button-custom-border-shadow-hover, none)
317
- );
318
- }
319
-
320
- /* Keyboard focus. Keep last so it wins over hover and the open state (:host
321
- lifts it above the custom and icon-only hover rules). The
322
- outline survives Windows high-contrast mode; the white band does not. */
309
+ /* Keyboard focus only; an open menu alone shows no ring. Keep last so it wins
310
+ over hover and the open state (:host lifts it above the custom and icon-only
311
+ hover rules). The outline survives Windows high-contrast mode; the white band
312
+ does not. */
323
313
  :host .button:focus-visible,
324
314
  :host .button:focus-visible:hover,
325
315
  :host([aria-expanded="true"]) .button:focus-visible {
@@ -12,11 +12,16 @@
12
12
  width: var(--shape-width);
13
13
  }
14
14
 
15
+ /* The vertical stroke of the "L" runs up to the top edge of the option: the
16
+ top padding plus the space above the shape inside the line box. */
15
17
  .indented-shape::after {
16
18
  background-color: var(--background);
17
19
  bottom: 0;
18
20
  content: "";
19
- height: 15px;
21
+ height: calc(
22
+ var(--dx-g-spacing-sm) +
23
+ (var(--dx-g-spacing-lg) + var(--wide) - var(--dx-g-spacing-xs)) / 2
24
+ );
20
25
  position: absolute;
21
26
  width: var(--wide);
22
27
  }
@@ -70,6 +75,7 @@
70
75
  .option-indented .option_details {
71
76
  align-items: center;
72
77
  flex-direction: row;
78
+ justify-content: flex-start;
73
79
  gap: 0;
74
80
  }
75
81
 
@@ -147,14 +153,18 @@
147
153
  max-width: calc(100vw - var(--dx-g-spacing-lg) * 4);
148
154
  }
149
155
 
156
+ /* Each "L" starts xs past the first letter of the label above it. A label
157
+ sits one shape plus its sm margin after its own "L", so each level steps in
158
+ by that much plus xs. */
150
159
  .option-indented:not([data-index="0"]) {
151
- --base-indentation: calc(var(--dx-g-spacing-md) + var(--shape-width));
160
+ --base-indentation: calc(
161
+ var(--shape-width) + var(--dx-g-spacing-sm) + var(--dx-g-spacing-xs)
162
+ );
152
163
  --shape-width: 8px;
153
164
 
154
- /* One sm step past the first option's lg left padding. */
155
165
  padding-left: calc(
156
166
  var(--indentation, 0px) + var(--dx-g-spacing-lg) +
157
- var(--dx-g-spacing-sm)
167
+ var(--dx-g-spacing-xs)
158
168
  );
159
169
  }
160
170
 
@@ -29,7 +29,6 @@
29
29
  padding: var(--popover-padding);
30
30
  overflow-y: auto;
31
31
  transition: var(--popover-transition);
32
- transition-delay: 0.02s;
33
32
  transform: translateY(var(--dx-g-spacing-xs));
34
33
  opacity: 0;
35
34
  }
@@ -40,6 +39,9 @@
40
39
  }
41
40
 
42
41
  .popover-container_open .popover {
42
+ /* Delay only on open. A closing delay keeps the menu visible for a frame
43
+ after its container hides, while it moves (a flash above the trigger). */
44
+ transition-delay: 0.02s;
43
45
  opacity: 1;
44
46
  transform: var(--popover-container-open-transform);
45
47
  }