@@ -19,7 +19,7 @@ export default function UploadPreview(props: Props) {
1919
2020 const handleRemove = ( image : UploadImage ) => {
2121 onUpdate ( ( prev ) =>
22- prev ?. filter ( ( prevImage ) => prevImage . url !== image . url ) ,
22+ prev ?. filter ( ( prevImage ) => prevImage . url !== image . url )
2323 ) ;
2424 } ;
2525
@@ -29,7 +29,7 @@ export default function UploadPreview(props: Props) {
2929 { images . map ( ( image ) => (
3030 < div key = { image . url } className = "animate-fade relative h-fit" >
3131 < Button
32- className = "text-skin-icon-inverted bg-skin-overlay hover:bg-skin-inverted hover:text-skin-inverted absolute top-0 m-2 rounded-full p-2"
32+ className = "text-skin-secondary bg-skin-secondary hover:bg-skin-muted border border-skin-base hover:text-skin-base absolute top-0 m-2 rounded-full p-2"
3333 onClick = { ( e ) => {
3434 e . preventDefault ( ) ;
3535 handleRemove ( image ) ;
@@ -40,16 +40,16 @@ export default function UploadPreview(props: Props) {
4040 < div className = "absolute bottom-0 m-2" >
4141 < Dialog . Root open = { showAltTextModal } >
4242 < Dialog . Trigger >
43- < div
44- className = "text-skin-icon-inverted bg-skin-overlay hover:bg-skin-inverted hover:text-skin-inverted rounded-full px-3 py-2 text-sm font-medium"
43+ < Button
44+ className = "text-skin-secondary bg-skin-secondary hover:bg-skin-muted border border-skin-base hover:text-skin-base rounded-full px-3 py-2 text-sm font-medium"
4545 onClick = { ( ) => {
4646 setSelectedImage ( image ) ;
4747 setShowAltTextModal ( true ) ;
4848 setAltText ( image . altText ?? "" ) ;
4949 } }
5050 >
5151 { image . altText ? "Edit alt text" : "Add alt text" }
52- </ div >
52+ </ Button >
5353 </ Dialog . Trigger >
5454 < Dialog . Portal >
5555 < Dialog . Content >
@@ -61,7 +61,7 @@ export default function UploadPreview(props: Props) {
6161 alt = "Uploaded image"
6262 width = { 200 }
6363 height = { 200 }
64- className = "mx-auto max-h-80 rounded-xl object-cover md:max-w-xl"
64+ className = "mx-auto max-h-80 rounded-xl object-cover md:max-w-xl border border-skin-base "
6565 />
6666 < div className = "mx-auto mt-3 flex items-center gap-2 md:max-w-xl" >
6767 < PiWarningCircleFill className = "text-skin-base shrink-0 text-2xl" />
@@ -103,8 +103,8 @@ export default function UploadPreview(props: Props) {
103103 ? altText
104104 : selectedImage . altText ,
105105 } )
106- : prevImage ,
107- ) ,
106+ : prevImage
107+ )
108108 ) ;
109109 } }
110110 className = "bg-primary hover:bg-primary-dark text-skin-icon-inverted rounded-full px-6 py-2 text-sm font-semibold"
@@ -125,7 +125,7 @@ export default function UploadPreview(props: Props) {
125125 alt = "Uploaded image"
126126 width = { 200 }
127127 height = { 200 }
128- className = "aspect-square max-h-40 w-full rounded-xl object-cover"
128+ className = "aspect-square max-h-40 w-full rounded-xl object-cover border border-skin-base "
129129 />
130130 </ div >
131131 ) ) }
0 commit comments