Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Fix icon button clickable area

Compare
Choose a tag to compare
@xaviervia xaviervia released this 12 Oct 13:52
· 1482 commits to master since this release
  • 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 the onClick 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.