@hex-core/components 1.0.0 → 1.0.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/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46,7 +46,9 @@ var buttonVariants = cva(
|
|
|
46
46
|
secondary: [
|
|
47
47
|
"bg-secondary text-secondary-foreground",
|
|
48
48
|
"shadow-sm",
|
|
49
|
-
|
|
49
|
+
// Hover: shadow-elevation only — opacity-based bg shift would push apparent
|
|
50
|
+
// contrast below 3:1 vs --card during hover, regressing WCAG 1.4.11.
|
|
51
|
+
"hover:shadow-md"
|
|
50
52
|
].join(" "),
|
|
51
53
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
52
54
|
link: "text-primary underline-offset-4 hover:underline"
|
|
@@ -288,7 +290,9 @@ var badgeVariants = cva3(
|
|
|
288
290
|
variants: {
|
|
289
291
|
variant: {
|
|
290
292
|
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
291
|
-
|
|
293
|
+
// Hover stays at full --secondary fill — opacity-based shift would drop the
|
|
294
|
+
// composite contrast below 3:1 against --card on hover (WCAG 1.4.11).
|
|
295
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
|
292
296
|
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
293
297
|
outline: "text-foreground"
|
|
294
298
|
}
|