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:
sean-brydonandAlex van Andel authored and GitHub committed 2023-01-19 14:55:32 +00:00
1 parent 18246e0dc1
commit cfaecc3e02
37 files changed
+145 -93

No files matched your search

@@ -954,7 +954,7 @@ const BookingPage = ({
<Button
type="button"
color="minimal"
size="icon"
variant="icon"
tooltip={t("additional_guests")}
StartIcon={Icon.FiUserPlus}
onClick={() => setGuestToggle(!guestToggle)}
@@ -183,7 +183,7 @@ function RadioInputHandler({
{...register(`options.${index}.label` as const, { required: true })}
addOnSuffix={
<Button
size="icon"
variant="icon"
color="minimal"
StartIcon={Icon.FiX}
onClick={() => {
@@ -129,7 +129,7 @@ export const EventAdvancedTab = ({ eventType, team }: Pick<EventTypeSetupProps,
<Button
type="button"
StartIcon={Icon.FiEdit}
size="icon"
variant="icon"
color="minimal"
className="hover:stroke-3 min-w-fit px-0 hover:bg-transparent hover:text-black"
onClick={() => setShowEventNameTip((old) => !old)}
@@ -430,7 +430,7 @@ const BookingLimits = () => {
}}
/>
<Button
size="icon"
variant="icon"
StartIcon={Icon.FiTrash}
color="destructive"
onClick={() => {
@@ -208,7 +208,7 @@ function EventTypeSingleLayout({
<Button
color="secondary"
target="_blank"
size="icon"
variant="icon"
href={permalink}
rel="noreferrer"
StartIcon={Icon.FiExternalLink}
@@ -217,7 +217,7 @@ function EventTypeSingleLayout({
<Button
color="secondary"
size="icon"
variant="icon"
StartIcon={Icon.FiLink}
tooltip={t("copy_link")}
onClick={() => {
@@ -229,12 +229,12 @@ function EventTypeSingleLayout({
embedUrl={encodeURIComponent(embedLink)}
StartIcon={Icon.FiCode}
color="secondary"
size="icon"
variant="icon"
tooltip={t("embed")}
/>
<Button
color="secondary"
size="icon"
variant="icon"
StartIcon={Icon.FiTrash}
tooltip={t("delete")}
disabled={!hasPermsToDelete}