@discuss-ds/ui 0.40.0 → 0.40.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 +6 -0
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2367,7 +2367,9 @@ var NavRailItem = React34.forwardRef(({ className, icon, label, selected = false
|
|
|
2367
2367
|
"aria-current": selected ? "page" : void 0,
|
|
2368
2368
|
className: cn(
|
|
2369
2369
|
"group flex w-full cursor-pointer flex-col items-center gap-1 rounded-md text-body-xxs outline-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
2370
|
-
selected
|
|
2370
|
+
// Hover (selected or not, Figma "Primary menu items" Hover=Yes): the caption and icon in accent-soft-foreground.
|
|
2371
|
+
selected ? "text-surface-foreground" : "text-secondary-muted-foreground",
|
|
2372
|
+
"hover:text-accent-soft-foreground",
|
|
2371
2373
|
className
|
|
2372
2374
|
),
|
|
2373
2375
|
...props,
|
|
@@ -2378,7 +2380,9 @@ var NavRailItem = React34.forwardRef(({ className, icon, label, selected = false
|
|
|
2378
2380
|
"aria-hidden": "true",
|
|
2379
2381
|
className: cn(
|
|
2380
2382
|
"flex size-9 items-center justify-center rounded-md transition-colors [&>svg]:size-4",
|
|
2381
|
-
|
|
2383
|
+
// Hover fills the square with accent-soft, over the selected fill too.
|
|
2384
|
+
selected ? "bg-secondary" : "",
|
|
2385
|
+
"group-hover:bg-accent-soft"
|
|
2382
2386
|
),
|
|
2383
2387
|
children: icon
|
|
2384
2388
|
}
|