@salesforcedevs/dx-components 1.40.5-topic-alpha.5 → 1.40.5-topic-alpha.7
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
|
@@ -240,6 +240,16 @@ export default class Popover extends LightningElement {
|
|
|
240
240
|
this.dispatchEvent(new CustomEvent("controlarrowdown"));
|
|
241
241
|
break;
|
|
242
242
|
}
|
|
243
|
+
// A mouse-opened menu leaves focus on the control, so Escape lands
|
|
244
|
+
// here, not in the popover's own key handler.
|
|
245
|
+
case "Esc":
|
|
246
|
+
case "Escape": {
|
|
247
|
+
if (this.open) {
|
|
248
|
+
this.dispatchRequestCloseEvent("keypress-escape");
|
|
249
|
+
this.closePopover(true);
|
|
250
|
+
}
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
243
253
|
default:
|
|
244
254
|
}
|
|
245
255
|
};
|
|
@@ -10,16 +10,21 @@
|
|
|
10
10
|
z-index: 2;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
/* The tile's keyboard focus layers fill this row, picker included. isolate
|
|
14
|
-
keeps the fill above the row's background and below its content. */
|
|
15
13
|
.tree-item-row {
|
|
16
|
-
position: relative;
|
|
17
|
-
isolation: isolate;
|
|
18
14
|
display: flex;
|
|
19
15
|
align-items: center;
|
|
20
16
|
min-width: 0;
|
|
21
17
|
}
|
|
22
18
|
|
|
19
|
+
/* The tile's keyboard focus layers fill this row, picker included. isolate
|
|
20
|
+
keeps the fill above the row's background and below its content. Only while
|
|
21
|
+
focus is inside: a row that is always isolated traps its picker's menu, and
|
|
22
|
+
later rows cover the menu while it fades out after a click outside. */
|
|
23
|
+
.tree-item-row:focus-within {
|
|
24
|
+
position: relative;
|
|
25
|
+
isolation: isolate;
|
|
26
|
+
}
|
|
27
|
+
|
|
23
28
|
.tree-item-row dx-tree-tile {
|
|
24
29
|
flex: 1;
|
|
25
30
|
min-width: 0;
|
|
@@ -255,3 +255,13 @@ a:link.tile-root {
|
|
|
255
255
|
box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-60),
|
|
256
256
|
inset 0 0 0 4px white;
|
|
257
257
|
}
|
|
258
|
+
|
|
259
|
+
/* A selected item keeps its left bar when it also has keyboard focus. */
|
|
260
|
+
:host
|
|
261
|
+
.sidebar-item:is(
|
|
262
|
+
.sidebar-item-selected,
|
|
263
|
+
.sidebar-item-selected-text
|
|
264
|
+
):focus-visible::after {
|
|
265
|
+
box-shadow: inset var(--dx-g-spacing-xs) 0 0 0 var(--dx-g-blue-vibrant-40),
|
|
266
|
+
inset 0 0 0 2px var(--dx-g-blue-vibrant-60), inset 0 0 0 4px white;
|
|
267
|
+
}
|