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
@@ -159,7 +159,7 @@ export const FormActionsDropdown = ({ form, children }: { form: RoutingForm; chi
|
||||
<DropdownMenuTrigger data-testid="form-dropdown" asChild>
|
||||
<Button
|
||||
type="button"
|
||||
size="icon"
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
className={classNames("radix-state-open:rounded-r-md", disabled && "opacity-30")}
|
||||
StartIcon={Icon.FiMoreHorizontal}
|
||||
|
||||
@@ -73,7 +73,7 @@ const Actions = ({
|
||||
routingForm={form}
|
||||
color="secondary"
|
||||
target="_blank"
|
||||
size="icon"
|
||||
variant="icon"
|
||||
type="button"
|
||||
rel="noreferrer"
|
||||
action="preview"
|
||||
@@ -84,7 +84,7 @@ const Actions = ({
|
||||
routingForm={form}
|
||||
action="copyLink"
|
||||
color="secondary"
|
||||
size="icon"
|
||||
variant="icon"
|
||||
type="button"
|
||||
StartIcon={Icon.FiLink}
|
||||
tooltip={t("copy_link_to_form")}
|
||||
@@ -96,7 +96,7 @@ const Actions = ({
|
||||
routingForm={form}
|
||||
action="download"
|
||||
color="secondary"
|
||||
size="icon"
|
||||
variant="icon"
|
||||
type="button"
|
||||
StartIcon={Icon.FiDownload}
|
||||
/>
|
||||
@@ -105,7 +105,7 @@ const Actions = ({
|
||||
routingForm={form}
|
||||
action="embed"
|
||||
color="secondary"
|
||||
size="icon"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiCode}
|
||||
tooltip={t("embed")}
|
||||
/>
|
||||
@@ -114,7 +114,7 @@ const Actions = ({
|
||||
routingForm={form}
|
||||
action="_delete"
|
||||
// className="mr-3"
|
||||
size="icon"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiTrash}
|
||||
color="secondary"
|
||||
type="button"
|
||||
|
||||
@@ -36,7 +36,7 @@ export default function RoutingForms({
|
||||
function NewFormButton() {
|
||||
return (
|
||||
<FormAction
|
||||
size="fab"
|
||||
variant="fab"
|
||||
routingForm={null}
|
||||
data-testid="new-routing-form"
|
||||
StartIcon={Icon.FiPlus}
|
||||
@@ -88,7 +88,7 @@ export default function RoutingForms({
|
||||
target="_blank"
|
||||
StartIcon={Icon.FiExternalLink}
|
||||
color="secondary"
|
||||
size="icon"
|
||||
variant="icon"
|
||||
disabled={disabled}
|
||||
/>
|
||||
</Tooltip>
|
||||
@@ -96,7 +96,7 @@ export default function RoutingForms({
|
||||
routingForm={form}
|
||||
action="copyLink"
|
||||
color="secondary"
|
||||
size="icon"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiLink}
|
||||
disabled={disabled}
|
||||
tooltip={t("copy_link_to_form")}
|
||||
|
||||
Reference in new issue
Block a user