@olenbetong/appframe-ds 1.7.0 → 1.7.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @olenbetong/appframe-ds
2
2
 
3
+ ## 1.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 973108d: `AppMenuItem` shows Designsystemet's focus ring when reached with the keyboard. The item removed the browser's outline on focus and drew nothing in its place.
8
+
3
9
  ## 1.7.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olenbetong/appframe-ds",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Components that bind Designsystemet components to Appframe data objects",
5
5
  "type": "module",
6
6
  "types": "./es/index.d.ts",
@@ -73,6 +73,16 @@
73
73
  outline: none;
74
74
  }
75
75
 
76
+ /*
77
+ * Designsystemet's inset focus ring: the items sit 0.2rem apart in a scrolling drawer, which
78
+ * would clip a ring drawn outside the item. Falls back to the browser's ring without the tokens.
79
+ */
80
+ .AppMenuItem-root:focus-visible {
81
+ box-shadow: var(--dsc-focus-boxShadow-inset);
82
+ outline: var(--dsc-focus-outline, auto);
83
+ outline-offset: calc(-1 * var(--ds-border-width-focus, 0px));
84
+ }
85
+
76
86
  .AppMenuItem-root:hover::before {
77
87
  opacity: 0.08;
78
88
  }