@imfusion/web-ui 0.11.1-dev.31.gb80c710e → 0.11.1-dev.33.gefbd75be

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": "@imfusion/web-ui",
3
- "version": "0.11.1-dev.31.gb80c710e",
3
+ "version": "0.11.1-dev.33.gefbd75be",
4
4
  "description": "The official Web UI component library for ImFusion web apps",
5
5
  "author": "ImFusion GmbH",
6
6
  "homepage": "https://imfusion.com",
@@ -19,7 +19,8 @@ Use native CSS and Web UI's public seams. The library's CSS Modules and token na
19
19
  transition: opacity var(--imf-ui-duration-quick-2) var(--imf-ui-ease-2);
20
20
 
21
21
  &:focus-visible {
22
- outline: var(--imf-ui-border-size-2) solid var(--imf-ui-color-fg-primary);
22
+ outline: var(--imf-ui-focus-ring-width) solid var(--imf-ui-focus-ring-color);
23
+ outline-offset: var(--imf-ui-focus-ring-offset);
23
24
  }
24
25
 
25
26
  &[data-disabled] {
@@ -28,6 +29,13 @@ Use native CSS and Web UI's public seams. The library's CSS Modules and token na
28
29
  }
29
30
  ```
30
31
 
32
+ ## Focus ring
33
+
34
+ Web UI parts draw their own focus ring. Your own focusable elements draw the same one from the `--imf-ui-focus-ring-*`
35
+ tokens: `width` and `color` for the outline, and one of two offsets: `offset` outside a standalone control and `offset-inset`
36
+ for items inside a scrolling or tight container, which would clip an outside ring. A surface filled with a saturated color
37
+ sets `--imf-ui-focus-ring-color` to `--imf-ui-color-fg-oncolor` for everything inside it.
38
+
31
39
  ## Build custom UI from tokens
32
40
 
33
41
  Use names from the shipped token index for colors, type, size, radius, and shadow. A literal beside a tokenized concept is a
@@ -462,6 +462,24 @@
462
462
  "value": "cubic-bezier(0, 0, 0.05, 1)"
463
463
  }
464
464
  ],
465
+ "focus": [
466
+ {
467
+ "name": "--imf-ui-focus-ring-color",
468
+ "value": "var(--imf-ui-color-fg-primary)"
469
+ },
470
+ {
471
+ "name": "--imf-ui-focus-ring-offset",
472
+ "value": "2px"
473
+ },
474
+ {
475
+ "name": "--imf-ui-focus-ring-offset-inset",
476
+ "value": "calc(var(--imf-ui-focus-ring-width) * -1)"
477
+ },
478
+ {
479
+ "name": "--imf-ui-focus-ring-width",
480
+ "value": "var(--imf-ui-border-size-2)"
481
+ }
482
+ ],
465
483
  "font": [
466
484
  {
467
485
  "name": "--imf-ui-font-family-body",
@@ -955,5 +973,5 @@
955
973
  }
956
974
  ]
957
975
  },
958
- "count": 233
976
+ "count": 237
959
977
  }