From 001916742083b414661f3fa0af50dd6cea9e725b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Vilcot?= Date: Fri, 13 Dec 2024 20:45:29 +0100 Subject: [PATCH] fix(pci-common): update custom styles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref: TAPC-2378 Signed-off-by: Frédéric Vilcot --- .../trusted-zone-banner/PciTrustedZoneBanner.tsx | 3 ++- .../flavor-selector/FlavorLocalzoneChip.tsx | 7 +++++++ .../flavor-selector/FlavorTile.component.tsx | 12 +++--------- .../modal/deletion-modal/DeletionModal.component.tsx | 2 +- .../quantity-selector/QuantitySelector.component.tsx | 3 +-- 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/packages/manager/modules/manager-pci-common/src/components/banner/trusted-zone-banner/PciTrustedZoneBanner.tsx b/packages/manager/modules/manager-pci-common/src/components/banner/trusted-zone-banner/PciTrustedZoneBanner.tsx index 34a88587524e..1815dd63c68a 100644 --- a/packages/manager/modules/manager-pci-common/src/components/banner/trusted-zone-banner/PciTrustedZoneBanner.tsx +++ b/packages/manager/modules/manager-pci-common/src/components/banner/trusted-zone-banner/PciTrustedZoneBanner.tsx @@ -1,4 +1,5 @@ import { useTranslation } from 'react-i18next'; +import { ODS_MESSAGE_COLOR } from '@ovhcloud/ods-components'; import { OdsText, OdsMessage } from '@ovhcloud/ods-components/react'; import { useTrustedZoneBanner } from './useTrustedZoneBanner.hook'; @@ -12,7 +13,7 @@ export function PciTrustedZoneBanner() { return ( <> {isBannerVisible && ( - + {t('pci_projects_trusted_zone_banner_info')} diff --git a/packages/manager/modules/manager-pci-common/src/components/flavor-selector/FlavorLocalzoneChip.tsx b/packages/manager/modules/manager-pci-common/src/components/flavor-selector/FlavorLocalzoneChip.tsx index d0419a877bed..fe0ae9aa9741 100644 --- a/packages/manager/modules/manager-pci-common/src/components/flavor-selector/FlavorLocalzoneChip.tsx +++ b/packages/manager/modules/manager-pci-common/src/components/flavor-selector/FlavorLocalzoneChip.tsx @@ -4,6 +4,7 @@ import { useContext } from 'react'; import { ShellContext } from '@ovh-ux/manager-react-shell-client'; import { OdsTag, OdsText, OdsPopover } from '@ovhcloud/ods-components/react'; import { ODS_ICON_NAME, ODS_TAG_COLOR } from '@ovhcloud/ods-components'; +import clsx from 'clsx'; import { GLOBAL_REGIONS_INFO_URL, LOCAL_ZONE_INFO_URL, @@ -32,6 +33,12 @@ export function FlavorLocalzoneChip({ <>
- - {t('pci_project_flavors_quota_manage')} - - + label={t('pci_project_flavors_quota_manage')} + /> )}
diff --git a/packages/manager/modules/manager-pci-common/src/components/modal/deletion-modal/DeletionModal.component.tsx b/packages/manager/modules/manager-pci-common/src/components/modal/deletion-modal/DeletionModal.component.tsx index 303dc832171f..a1e17b1cd17e 100644 --- a/packages/manager/modules/manager-pci-common/src/components/modal/deletion-modal/DeletionModal.component.tsx +++ b/packages/manager/modules/manager-pci-common/src/components/modal/deletion-modal/DeletionModal.component.tsx @@ -95,7 +95,7 @@ export function DeletionModal({ data-testid="delete-formField" error={errorMessage} > - + {confirmationLabel}
{label && ( - + {label} )} @@ -71,7 +71,6 @@ export function QuantitySelector({ )} onValueChange(Number(event.detail.value)) }