This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
Fix icon button clickable area
- Extra props passed to IconButton components are now spread in the root
<div>
, not in the<svg>
, meaning it's possible to target the whole icon and theonClick
event is captured for the whole area. - IconButton's
className
props are now also incorporated in the wrapping<div>
, so className style overrides can affect the whole component.
Thanks @jonotrujillo for the fix.