Просмотр исходного кода

fix non-autofixable biome lint errors

Futa Arai 9 месяцев назад
Родитель
Сommit
785441e65d
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      packages/ui/src/components/UserPicture.tsx

+ 3 - 0
packages/ui/src/components/UserPicture.tsx

@@ -67,12 +67,15 @@ const UserPictureRootWithLink = forwardRef<
   // Nested anchor tags causes a warning.
   // Nested anchor tags causes a warning.
   // https://stackoverflow.com/questions/13052598/creating-anchor-tag-inside-anchor-taga
   // https://stackoverflow.com/questions/13052598/creating-anchor-tag-inside-anchor-taga
   return (
   return (
+    // biome-ignore lint/a11y/useSemanticElements: ignore
     <span
     <span
       ref={ref}
       ref={ref}
       className={props.className}
       className={props.className}
       onClick={clickHandler}
       onClick={clickHandler}
       onKeyDown={() => {}}
       onKeyDown={() => {}}
       style={{ cursor: 'pointer' }}
       style={{ cursor: 'pointer' }}
+      role="link"
+      tabIndex={0}
     >
     >
       {props.children}
       {props.children}
     </span>
     </span>