Pārlūkot izejas kodu

move title to label (#584)

David Luzar 5 gadi atpakaļ
vecāks
revīzija
61264ee2d6
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  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}