move title to label (#584)

This commit is contained in:
David Luzar 2020-01-26 20:49:18 +01:00 committed by GitHub
parent e17f743df1
commit 61264ee2d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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