File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ const variants = {
6
6
branding :
7
7
"text-violet-700 dark:text-neutral-200 border-violet-700 dark:border-neutral-200 bg-transparent hover:bg-violet-50 hover:dark:bg-violet-900 focus:shadow-[0_0_10px] focus:shadow-primary" ,
8
8
brandingInverse :
9
- "border-white bg-primary text-white transition-opacity hover:bg-violet-200 focus:shadow-[0_0_10px] focus:shadow-white disabled:opacity-50 hover:dark:bg-violet-700" ,
9
+ "border-white bg-primary text-white hover:text-violet-700 dark:hover:text-white transition-opacity hover:bg-violet-200 focus:shadow-[0_0_10px] focus:shadow-white disabled:opacity-50 hover:dark:bg-violet-700" ,
10
10
alternative :
11
- "text-white border-white bg-yellow-branding hover:bg-yellow-branding-dark focus:shadow-[0_0_10px] focus:shadow-yellow-branding" ,
11
+ "text-white-dark border-white-dark bg-yellow-branding hover:bg-yellow-branding-dark focus:shadow-[0_0_10px] focus:shadow-yellow-branding" ,
12
12
} ;
13
13
14
14
type ButtonProps = Readonly < {
@@ -19,7 +19,7 @@ type ButtonProps = Readonly<{
19
19
export const Button = ( { variant, className, ...props } : ButtonProps ) => (
20
20
< button
21
21
className = { twMerge (
22
- "min-w-[160px] appearance-none rounded-md border border-transparent px-8 py-1 text-sm leading-8 transition-colors duration-100 sm:py-0" ,
22
+ "min-w-[160px] appearance-none rounded-md border border-transparent px-8 py-1 text-sm leading-8 transition-colors duration-100 disabled:cursor-not-allowed sm:py-0" ,
23
23
variants [ variant ] ,
24
24
className ,
25
25
) }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { ButtonHTMLAttributes } from "react";
4
4
export const CloseButton = ( { className, ...props } : ButtonHTMLAttributes < HTMLButtonElement > ) => (
5
5
< button
6
6
className = { twMerge (
7
- "flex h-8 w-8 appearance-none items-center justify-center rounded-full text-4xl text-violet-200 transition-colors duration-100 hover:bg-primary hover:text-white focus:shadow-[0_0_10px] focus:shadow-primary focus:outline-none dark:text -violet-700 dark:hover:text-white " ,
7
+ "flex h-8 w-8 appearance-none items-center justify-center rounded-full text-4xl text-violet-200 transition-colors duration-100 hover:bg-primary hover:text-white focus:shadow-[0_0_10px] focus:shadow-primary focus:outline-none dark:hover:bg -violet-700" ,
8
8
className ,
9
9
) }
10
10
{ ...props }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const variants = {
5
5
default :
6
6
"select bg-white py-1 pl-1 pr-6 text-neutral-700 dark:bg-white-dark dark:text-neutral-200" ,
7
7
purple :
8
- "select-purple border-b border-primary bg-transparent py-2 pr-6 pl-1 capitalize text-primary transition-shadow duration-100 focus:shadow-[0_0_10px] focus:shadow-primary dark:border-neutral-200 dark:text-neutral-200 dark:focus:shadow-white" ,
8
+ "select-purple dark:select border-b border-primary bg-transparent py-2 pr-6 pl-1 capitalize text-primary transition-shadow duration-100 focus:shadow-[0_0_10px] focus:shadow-primary dark:border-neutral-200 dark:text-neutral-200 dark:focus:shadow-white dark:bg-white-dark " ,
9
9
} ;
10
10
11
11
type SelectProps = Readonly < {
You can’t perform that action at this time.
0 commit comments