@salesforcedevs/dx-components 1.40.5-final-alpha1 → 1.40.5-final-alpha3

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-final-alpha1",
3
+ "version": "1.40.5-final-alpha3",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -16,6 +16,14 @@
16
16
  display: flex;
17
17
  align-items: center;
18
18
  min-width: 0;
19
+ position: relative;
20
+ }
21
+
22
+ /* The tile's keyboard focus layers fill this row, picker included. isolate
23
+ keeps the fill above the row's background and below its content. Only while
24
+ focus is inside: a row that is always isolated traps its picker's menu. */
25
+ .tree-item-row:focus-within {
26
+ isolation: isolate;
19
27
  }
20
28
 
21
29
  .tree-item-row dx-tree-tile {
@@ -217,3 +217,51 @@ a:visited.tile-root,
217
217
  a:link.tile-root {
218
218
  color: var(--dx-g-blue-vibrant-20);
219
219
  }
220
+
221
+ /* Keyboard focus matches dx-dropdown-option: a light fill, a 2px blue inset
222
+ ring, and a white inner band. The layers fill dx-tree-item's row (it sets
223
+ position: relative), so a version picker beside the link sits inside the
224
+ focus box. Undo the shared tree item focus box (commonTreeItem) first. */
225
+ :host .sidebar-item:focus-visible {
226
+ margin: 0;
227
+ padding: 6px var(--dx-g-spacing-lg) 6px
228
+ var(--dx-g-global-header-padding-horizontal);
229
+ outline: none;
230
+ border-radius: 0;
231
+ }
232
+
233
+ :host .sidebar-item:focus-visible .indentation {
234
+ padding-top: 0;
235
+ padding-bottom: 0;
236
+ outline: none;
237
+ }
238
+
239
+ :host .sidebar-item:focus-visible::before,
240
+ :host .sidebar-item:focus-visible::after {
241
+ content: "";
242
+ position: absolute;
243
+ inset: 0;
244
+ pointer-events: none;
245
+ }
246
+
247
+ :host .sidebar-item:focus-visible::before {
248
+ z-index: -1;
249
+ background: var(--dx-g-cloud-blue-vibrant-95);
250
+ }
251
+
252
+ :host .sidebar-item:focus-visible::after {
253
+ z-index: 1;
254
+ box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-60),
255
+ inset 0 0 0 4px white;
256
+ }
257
+
258
+ /* A selected item keeps its left bar, inside the ring, when it also has keyboard focus. */
259
+ :host
260
+ .sidebar-item:is(
261
+ .sidebar-item-selected,
262
+ .sidebar-item-selected-text
263
+ ):focus-visible::after {
264
+ box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-60),
265
+ inset 0 0 0 4px white,
266
+ inset calc(2 * var(--dx-g-spacing-xs)) 0 0 0 var(--dx-g-blue-vibrant-40);
267
+ }