@@ -6,17 +6,17 @@ interface AppPageAlertProps {
66 message : string ;
77}
88
9- const alertVariants = cva ( 'mb-4 rounded flex gap-2 items-start border-l-4 p-3 text-sm' , {
9+ const alertVariants = cva ( 'mb-4 flex items-start gap-2 rounded border-l-4 p-3 text-sm' , {
1010 variants : {
1111 variant : {
1212 default :
13- 'text-gray-800 border-gray-300 bg-gray-50 dark:bg -gray-800 dark:text -gray-300 dark:border -gray-600 ' ,
14- info : 'border-blue-300 text-blue-800 bg -blue-50 dark:bg-gray-800 dark:text-blue-400 dark:border-blue-800 ' ,
13+ 'border-gray-300 bg-gray-50 text-gray-800 dark:border -gray-600 dark:bg -gray-800 dark:text -gray-300 ' ,
14+ info : 'border-blue-300 bg-blue-50 text-blue-800 dark:border -blue-800 dark:bg-gray-800 dark:text-blue-400' ,
1515 warning :
16- 'text-yellow-800 border-yellow-300 bg-yellow-50 dark:bg-gray -800 dark:text-yellow-300 dark:border -yellow-800 ' ,
17- error : 'text-red-800 border-red-300 bg-red-50 dark:bg-gray -800 dark:text-red-400 dark:border -red-800 ' ,
16+ 'border-yellow-300 bg-yellow-50 text-yellow-800 dark:border-yellow -800 dark:bg-gray-800 dark:text -yellow-300 ' ,
17+ error : 'border-red-300 bg-red-50 text-red-800 dark:border-red -800 dark:bg-gray-800 dark:text -red-400 ' ,
1818 success :
19- 'text-green-800 border-green-300 bg-green-50 dark:bg-gray -800 dark:text-green-400 dark:border -green-800 ' ,
19+ 'border-green-300 bg-green-50 text-green-800 dark:border-green -800 dark:bg-gray-800 dark:text -green-400 ' ,
2020 } ,
2121 } ,
2222 defaultVariants : { variant : 'default' } ,
@@ -29,7 +29,7 @@ export default function AppPageAlert({
2929} : Readonly < AppPageAlertProps & VariantProps < typeof alertVariants > > ) {
3030 return (
3131 < div role = "alert" className = { alertVariants ( { variant } ) } >
32- < CircleAlertIcon aria-hidden size = { 14 } className = "mt-[2px] inline shrink-0" />
32+ < CircleAlertIcon aria-hidden size = { 14 } className = "mt-0.5 inline shrink-0" />
3333 < div >
3434 < strong className = "font-semibold" > { title } </ strong >
3535 < p className = "text-balance" > { message } </ p >
0 commit comments