Icon small button variant (#6525)
* Icon small button variant * Rename * Update CVA + Update button WIP * add ticket ref and fix padding * Update button and all uses of Icon button * SB deployment test * Fixing type error * Fix lint * Add icon button to canvas Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
18246e0dc1
commit
cfaecc3e02
37 files changed
+145
-93
No files matched your search
@@ -286,7 +286,7 @@ export default function CreateEventTypeButton(props: CreateEventTypeBtnProps) {
|
||||
onClick={() => openModal(props.options[0])}
|
||||
data-testid="new-event-type"
|
||||
StartIcon={Icon.FiPlus}
|
||||
size="fab"
|
||||
variant="fab"
|
||||
disabled={!props.canAddEvents}>
|
||||
{t("new")}
|
||||
</Button>
|
||||
@@ -295,7 +295,7 @@ export default function CreateEventTypeButton(props: CreateEventTypeBtnProps) {
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
EndIcon={Icon.FiChevronDown}
|
||||
size="fab"
|
||||
variant="fab"
|
||||
className="radix-state-open:!bg-brand-500 radix-state-open:ring-2 radix-state-open:ring-brand-500 ring-offset-2 focus:border-none">
|
||||
{t("new")}
|
||||
</Button>
|
||||
|
||||
@@ -28,7 +28,7 @@ function CustomInputItem({ required, deleteOnClick, editOnClick, type, question
|
||||
</Button>
|
||||
<Button
|
||||
StartIcon={Icon.FiTrash}
|
||||
size="icon"
|
||||
variant="icon"
|
||||
color="destructive"
|
||||
onClick={deleteOnClick}
|
||||
className="h-[36px] border border-gray-200"
|
||||
|
||||
Reference in new issue
Block a user