Skip to content

Commit

Permalink
ui: button hovers start at 'sm'
Browse files Browse the repository at this point in the history
  • Loading branch information
artemis-prime committed May 20, 2024
1 parent 6e2ecce commit 2083c59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hanzo/ui",
"version": "3.8.4",
"version": "3.8.5",
"description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
Expand Down
14 changes: 7 additions & 7 deletions packages/ui/primitives/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "../util"

const variant = {
primary: "bg-primary text-primary-fg md:hover:bg-primary-hover font-nav whitespace-nowrap not-typography",
secondary: "bg-secondary text-secondary-fg md:hover:bg-secondary-hover font-nav whitespace-nowrap not-typography",
outline: "text-foreground bg-background border border-muted-4 md:hover:bg-level-1 md:hover:text-accent md:hover:border-accent font-nav whitespace-nowrap not-typography",
destructive: "bg-destructive text-destructive-fg font-sans whitespace-nowrap md:hover:bg-destructive-hover",
ghost: "text-foreground md:hover:bg-level-1 md:hover:text-accent whitespace-nowrap font-sans ",
link: "text-foreground md:hover:text-muted-1 font-sans ",
linkFG: "text-foreground md:hover:text-muted-1 font-sans ", // marker to style nav as regular link
primary: "bg-primary text-primary-fg sm:hover:bg-primary-hover font-nav whitespace-nowrap not-typography",
secondary: "bg-secondary text-secondary-fg sm:hover:bg-secondary-hover font-nav whitespace-nowrap not-typography",
outline: "text-foreground bg-background border border-muted-4 sm:hover:bg-level-1 sm:hover:text-accent sm:hover:border-accent font-nav whitespace-nowrap not-typography",
destructive: "bg-destructive text-destructive-fg font-sans whitespace-nowrap sm:hover:bg-destructive-hover",
ghost: "text-foreground sm:hover:bg-level-1 sm:hover:text-accent whitespace-nowrap font-sans ",
link: "text-foreground sm:hover:text-muted-1 font-sans ",
linkFG: "text-foreground sm:hover:text-muted-1 font-sans ", // marker to style nav as regular link
}

const size = {
Expand Down

0 comments on commit 2083c59

Please sign in to comment.