Skip to content
Snippets Groups Projects
Commit b6d2e730 authored by Alissa Cheng's avatar Alissa Cheng
Browse files

fix: define icon width and height

parent 6788eb99
No related branches found
No related tags found
1 merge request!27fix: define icon width and height
Pipeline #73683 passed
...@@ -42,7 +42,14 @@ const Button = ({ ...@@ -42,7 +42,14 @@ const Button = ({
return ( return (
<NextButton <NextButton
startContent={icon && <Icon name={icon} customClass={iconClass} />} startContent={
icon && (
<Icon
name={icon}
customClass={clsx(iconClass, "w-[16px] h-[16px]")}
/>
)
}
className={clsx( className={clsx(
bgClass(isDisabled), bgClass(isDisabled),
cursorPointer(isDisabled), cursorPointer(isDisabled),
......
...@@ -17,5 +17,6 @@ export const SimpleIcon: StoryObj = { ...@@ -17,5 +17,6 @@ export const SimpleIcon: StoryObj = {
args: { args: {
name: "attention-circle", name: "attention-circle",
color: "body", color: "body",
customClass: "w-[16px] h-[16px]",
}, },
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment