@salesforcedevs/dx-components 1.40.5-topic-alpha.6 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "1.40.5-topic-alpha.6",
3
+ "version": "1.40.5-topic-alpha.7",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -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;