From c689836208ca4562d2d045b7bea3ac0252cf65c4 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 5 Sep 2021 14:04:51 +0530 Subject: [PATCH] Added variants in IconButton comp --- src/app/atoms/button/IconButton.jsx | 10 ++-------- src/app/atoms/button/IconButton.scss | 23 +++++++++++++++++++---- 2 files changed, 21 insertions(+), 12 deletions(-) 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 = (