fix:multiple buttons (#21928)

This commit is contained in:
Adarsh Tiwari
2025-06-19 15:08:47 +00:00
committed by GitHub
parent f390e91bd7
commit 00aac89ed7
6 changed files with 6 additions and 2 deletions
@@ -105,7 +105,7 @@ const CustomEmailTextField = ({
<DropdownItem
StartIcon="trash"
color="destructive"
className="disabled:opacity-40"
className="rounded-t-none disabled:opacity-40"
onClick={handleItemDelete}
disabled={emailPrimary}
data-testid="secondary-email-delete-button">
@@ -750,7 +750,7 @@ export const InfiniteEventTypeList = ({
setDeleteDialogSchedulingType(type.schedulingType);
}}
StartIcon="trash"
className="w-full rounded-none">
className="w-full rounded-t-none">
{t("delete")}
</DropdownItem>
</DropdownMenuItem>
@@ -128,6 +128,7 @@ export default function OtherTeamListItem(props: Props) {
color="destructive"
type="button"
StartIcon="trash"
className="rounded-t-none"
onClick={(e) => {
e.stopPropagation();
}}>
@@ -112,6 +112,7 @@ function AttributeItem({
type="button"
StartIcon="trash-2"
color="destructive"
className="rounded-t-none"
onClick={() => setAttributeToDelete(attribute)}>
{t("delete")}
</DropdownItem>
@@ -272,6 +272,7 @@ export default function TeamListItem(props: Props) {
color="destructive"
type="button"
StartIcon="trash"
className="rounded-t-none"
onClick={(e) => {
e.stopPropagation();
}}>
@@ -127,6 +127,7 @@ export function ScheduleListItem({
color="destructive"
StartIcon="trash"
data-testid="delete-schedule"
className="rounded-t-none"
onClick={() => {
if (!isDeletable) {
showToast(t("requires_at_least_one_schedule"), "error");