@versini/ui-togglegroup 9.2.2 → 9.2.4

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-togglegroup v9.2.2
2
+ @versini/ui-togglegroup v9.2.4
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -104,7 +104,12 @@ const getTargetIndex = (intent, currentIndex, count)=>{
104
104
 
105
105
 
106
106
  const getToggleGroupItemFocusClasses = ()=>{
107
- return clsx("focus:outline-none", "focus:ring-2", "focus:ring-inset", "focus:ring-focus-dark");
107
+ return clsx(/**
108
+ * outline-hidden, not outline-none: the indicator here is a ring, which
109
+ * paints through box-shadow and is dropped in forced-colors mode.
110
+ * outline-hidden additionally emits a transparent outline under
111
+ * forced-colors, which the OS then paints, so keyboard focus survives.
112
+ */ "outline-hidden", "focus-visible:ring-2", "focus-visible:ring-inset", "focus-visible:ring-focus-dark");
108
113
  };
109
114
  const getToggleGroupItemActiveClasses = ({ flat })=>{
110
115
  return clsx("data-[state=on]:bg-surface-lightest data-[state=on]:text-copy-dark", "dark:data-[state=on]:bg-surface-dark dark:data-[state=on]:text-copy-light", !flat && "av-bg-split-overlay");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-togglegroup",
3
- "version": "9.2.2",
3
+ "version": "9.2.4",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -19,12 +19,12 @@
19
19
  "README.md"
20
20
  ],
21
21
  "devDependencies": {
22
- "@versini/ui-styles": "9.7.5"
22
+ "@versini/ui-styles": "9.7.7"
23
23
  },
24
24
  "dependencies": {
25
+ "@versini/ui-hooks": "6.2.2",
25
26
  "clsx": "2.1.1",
26
- "tailwindcss": "4.3.3",
27
- "@versini/ui-hooks": "6.2.2"
27
+ "tailwindcss": "4.3.3"
28
28
  },
29
29
  "sideEffects": [
30
30
  "**/*.css"