소스 검색

move title to label (#584)

David Luzar 5 년 전
부모
커밋
61264ee2d6
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/components/ToolButton.tsx

+ 1 - 2
src/components/ToolButton.tsx

@@ -50,12 +50,11 @@ export const ToolButton = React.forwardRef(function(
     );
 
   return (
-    <label className="ToolIcon">
+    <label className="ToolIcon" title={props.title}>
       <input
         className={`ToolIcon_type_radio ${sizeCn}`}
         type="radio"
         name={props.name}
-        title={props.title}
         aria-label={props["aria-label"]}
         aria-keyshortcuts={props["aria-keyshortcuts"]}
         id={props.id}