fixed keyboard access and aria labels

This commit is contained in:
2026-02-18 23:32:21 +02:00
parent c14dde64a5
commit 7cf45f56c9
4 changed files with 61 additions and 30 deletions

View File

@@ -157,7 +157,7 @@ export const FileUpload: React.FC<FileUploadProps> = ({ onFileLoaded }) => {
transition={{ duration: 0.5 }}
whileHover={{ scale: 1.1, rotate: 5 }}
>
<Upload size={32} />
<Upload size={32} aria-hidden="true" />
</motion.div>
<motion.p
className="mb-2 text-lg font-medium"
@@ -216,7 +216,7 @@ export const FileUpload: React.FC<FileUploadProps> = ({ onFileLoaded }) => {
animate={{ rotate: [0, 10, -10, 0] }}
transition={{ duration: 0.5 }}
>
<AlertCircle size={20} />
<AlertCircle size={20} aria-hidden="true" />
</motion.div>
<span>{error}</span>
</motion.div>