diff --git a/src/components/badge/badge.jsx b/src/components/badge/badge.jsx index 8fa44aa0..088b4f38 100644 --- a/src/components/badge/badge.jsx +++ b/src/components/badge/badge.jsx @@ -53,15 +53,6 @@ const BadgeComponent = ( props, ref ) => { 'bg-badge-background-disabled hover:bg-badge-hover-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed', }; - // Gap classes between icon, label, and X - const gapClasses = { - xxs: 'gap-1', // 4px - xs: 'gap-1.5', // 6px - sm: 'gap-1.5', // 6px - md: 'gap-1.5', // 6px - lg: 'gap-1.5', // 6px - }; - let filteredClasses = ''; let buttonClasses = 'group relative justify-center flex items-center cursor-pointer'; @@ -91,7 +82,7 @@ const BadgeComponent = ( props, ref ) => { baseClasses, sizeClasses[ size ], typeClasses[ type ], - gapClasses[ size ], // Apply the gap class based on size + 'gap-0.5', filteredClasses, className ) } diff --git a/src/components/button/button.jsx b/src/components/button/button.jsx index 7012690f..7ffb51ce 100644 --- a/src/components/button/button.jsx +++ b/src/components/button/button.jsx @@ -18,7 +18,7 @@ const Button = forwardRef( ( props, ref ) => { } = props; const commonClass = - 'border border-solid cursor-not-allowed transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled'; + 'border border-solid cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled'; const loadingClass = loading ? 'opacity-50 disabled:cursor-not-allowed' @@ -48,17 +48,17 @@ const Button = forwardRef( ( props, ref ) => { : ''; const sizeClassNames = { - xs: 'p-1 rounded [&>svg]:size-4 h-6 gap-1', - sm: 'p-2 rounded [&>svg]:size-4 h-8 gap-1.5', - md: 'p-2.5 rounded-md text-sm [&>svg]:size-5 h-10 gap-2', - lg: 'p-3 rounded-lg text-base [&>svg]:size-6 h-12 gap-2', + xs: 'p-1 rounded [&>svg]:size-4 h-6', + sm: 'p-2 rounded [&>svg]:size-4 h-8 gap-0.5', + md: 'p-2.5 rounded-md text-sm [&>svg]:size-5 h-10 gap-1', + lg: 'p-3 rounded-lg text-base [&>svg]:size-6 h-12 gap-1', }?.[ size ]; let iconLeft, iconRight = null; let iconClass = ''; if ( icon ) { - iconClass = 'flex items-center justify-center gap-1'; + iconClass = 'flex items-center justify-center'; if ( iconPosition === 'left' ) { iconLeft = icon; } else { @@ -84,7 +84,7 @@ const Button = forwardRef( ( props, ref ) => { { ...rest } > { iconLeft } - { children } + { children } { iconRight } ); diff --git a/src/components/cards/list-blocks.stories.jsx b/src/components/cards/list-blocks.stories.jsx index 160ae3b5..ea73ef30 100644 --- a/src/components/cards/list-blocks.stories.jsx +++ b/src/components/cards/list-blocks.stories.jsx @@ -4,7 +4,6 @@ import RadioButton from '../radio-button'; import Container from '../container'; import Label from '../label'; import Badge from '../badge'; -import Button from '../button'; import { Headset, MessageSquare, HelpCircle, Star } from 'lucide-react'; @@ -93,12 +92,11 @@ const Template3 = () => { > { button.icon } - + + + { button.bagde } diff --git a/src/components/cards/plugin-blocks.stories.jsx b/src/components/cards/plugin-blocks.stories.jsx index bd7f89d9..c3ab99c2 100644 --- a/src/components/cards/plugin-blocks.stories.jsx +++ b/src/components/cards/plugin-blocks.stories.jsx @@ -74,7 +74,12 @@ const Template2 = () => { className="w-120 border border-solid rounded-md border-border-subtle p-4" > - +