@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @discuss-ds/ui
|
|
2
2
|
|
|
3
|
+
## 0.40.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#149](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/149) [`fd68778`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/fd68778bdb4437b925ea1a03c7155f8ff6e866a3) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `NavRailItem` hover now matches Figma: the icon square fills with `accent-soft` and the icon and caption turn `accent-soft-foreground`, on selected and unselected items alike (it was a grey `secondary` square with a darker caption).
|
|
8
|
+
|
|
3
9
|
## 0.40.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2529,7 +2529,9 @@ var NavRailItem = React34.forwardRef(({ className, icon, label, selected = false
|
|
|
2529
2529
|
"aria-current": selected ? "page" : void 0,
|
|
2530
2530
|
className: cn(
|
|
2531
2531
|
"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",
|
|
2532
|
-
selected
|
|
2532
|
+
// Hover (selected or not, Figma "Primary menu items" Hover=Yes): the caption and icon in accent-soft-foreground.
|
|
2533
|
+
selected ? "text-surface-foreground" : "text-secondary-muted-foreground",
|
|
2534
|
+
"hover:text-accent-soft-foreground",
|
|
2533
2535
|
className
|
|
2534
2536
|
),
|
|
2535
2537
|
...props,
|
|
@@ -2540,7 +2542,9 @@ var NavRailItem = React34.forwardRef(({ className, icon, label, selected = false
|
|
|
2540
2542
|
"aria-hidden": "true",
|
|
2541
2543
|
className: cn(
|
|
2542
2544
|
"flex size-9 items-center justify-center rounded-md transition-colors [&>svg]:size-4",
|
|
2543
|
-
|
|
2545
|
+
// Hover fills the square with accent-soft, over the selected fill too.
|
|
2546
|
+
selected ? "bg-secondary" : "",
|
|
2547
|
+
"group-hover:bg-accent-soft"
|
|
2544
2548
|
),
|
|
2545
2549
|
children: icon
|
|
2546
2550
|
}
|