From: unknown Date: Sun, 5 Sep 2021 08:34:51 +0000 (+0530) Subject: Added variants in IconButton comp X-Git-Tag: v1.3.0^2~27 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=c689836208ca4562d2d045b7bea3ac0252cf65c4;p=cinny.git Added variants in IconButton comp --- diff --git a/src/app/atoms/button/IconButton.jsx b/src/app/atoms/button/IconButton.jsx index f92752e..4ed2b93 100644 --- a/src/app/atoms/button/IconButton.jsx +++ b/src/app/atoms/button/IconButton.jsx @@ -7,12 +7,6 @@ import Tooltip from '../tooltip/Tooltip'; import { blurOnBubbling } from './script'; import Text from '../text/Text'; -// TODO: -// 1. [done] an icon only button have "src" -// 2. have multiple variant -// 3. [done] should have a smart accessibility "label" arial-label -// 4. [done] have size as RawIcon - const IconButton = React.forwardRef(({ variant, size, type, tooltip, tooltipPlacement, src, onClick, @@ -20,7 +14,7 @@ const IconButton = React.forwardRef(({ const btn = (