From 23399d697f66ff36876efc2c09e64372963570b5 Mon Sep 17 00:00:00 2001 From: Jayashree-panda Date: Tue, 9 Feb 2021 10:37:16 +0530 Subject: [PATCH] fixes inconsistent fonts on step 1 and step 2 of baremetal wizard Signed-off-by: Jayashree-panda --- .../create-sc/wizard-pages/auto-detect-volume.tsx | 4 ++-- .../create-sc/wizard-pages/create-local-volume-set.tsx | 4 ++-- .../auto-detect-volume/auto-detect-volume-inner.tsx | 10 +++++++--- .../auto-detect-volume/auto-detect-volume.tsx | 4 ++-- .../local-volume-set/create-local-volume-set.tsx | 4 ++-- .../local-volume-set/local-volume-set-inner.tsx | 9 +++++++-- 6 files changed, 22 insertions(+), 13 deletions(-) diff --git a/frontend/packages/ceph-storage-plugin/src/components/ocs-install/attached-devices/create-sc/wizard-pages/auto-detect-volume.tsx b/frontend/packages/ceph-storage-plugin/src/components/ocs-install/attached-devices/create-sc/wizard-pages/auto-detect-volume.tsx index 9d64f5df7234..77fbb5dbba09 100644 --- a/frontend/packages/ceph-storage-plugin/src/components/ocs-install/attached-devices/create-sc/wizard-pages/auto-detect-volume.tsx +++ b/frontend/packages/ceph-storage-plugin/src/components/ocs-install/attached-devices/create-sc/wizard-pages/auto-detect-volume.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Form } from '@patternfly/react-core'; +import { Form, TextVariants } from '@patternfly/react-core'; import { AutoDetectVolumeInner, AutoDetectVolumeHeader, @@ -11,7 +11,7 @@ import '../../attached-devices.scss'; export const AutoDetectVolume: React.FC = ({ state, dispatch }) => ( <> - +
diff --git a/frontend/packages/ceph-storage-plugin/src/components/ocs-install/attached-devices/create-sc/wizard-pages/create-local-volume-set.tsx b/frontend/packages/ceph-storage-plugin/src/components/ocs-install/attached-devices/create-sc/wizard-pages/create-local-volume-set.tsx index 460276954fd7..2fd4e4159bb6 100644 --- a/frontend/packages/ceph-storage-plugin/src/components/ocs-install/attached-devices/create-sc/wizard-pages/create-local-volume-set.tsx +++ b/frontend/packages/ceph-storage-plugin/src/components/ocs-install/attached-devices/create-sc/wizard-pages/create-local-volume-set.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { useTranslation } from 'react-i18next'; -import { Form, Alert, Button, Grid, GridItem } from '@patternfly/react-core'; +import { Form, Alert, Button, Grid, GridItem, TextVariants } from '@patternfly/react-core'; import { Modal, useFlag } from '@console/shared'; import { k8sCreate } from '@console/internal/module/k8s'; import { LocalVolumeSetModel } from '@console/local-storage-operator-plugin/src/models'; @@ -64,7 +64,7 @@ export const CreateLocalVolumeSet: React.FC = ({ return ( <> - +
diff --git a/frontend/packages/local-storage-operator-plugin/src/components/auto-detect-volume/auto-detect-volume-inner.tsx b/frontend/packages/local-storage-operator-plugin/src/components/auto-detect-volume/auto-detect-volume-inner.tsx index 68b420336877..b317941e4c97 100644 --- a/frontend/packages/local-storage-operator-plugin/src/components/auto-detect-volume/auto-detect-volume-inner.tsx +++ b/frontend/packages/local-storage-operator-plugin/src/components/auto-detect-volume/auto-detect-volume-inner.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { useTranslation } from 'react-i18next'; -import { FormGroup, Radio } from '@patternfly/react-core'; +import { FormGroup, Radio, Text, TextContent } from '@patternfly/react-core'; import { ListPage } from '@console/internal/components/factory'; import { NodeKind } from '@console/internal/module/k8s'; import { useK8sWatchResource } from '@console/internal/components/utils/k8s-watch-hook'; @@ -101,12 +101,16 @@ export const AutoDetectVolumeInner: React.FC = ({ ); }; -export const AutoDetectVolumeHeader = () => { +export const AutoDetectVolumeHeader = ({ className, variant }) => { const { t } = useTranslation(); return ( <> -

{t('lso-plugin~Auto Detect Volume')}

+ + + {t('lso-plugin~Auto Detect Volume')} + +

{t('lso-plugin~Allows you to discover the available disks on all available nodes')}

diff --git a/frontend/packages/local-storage-operator-plugin/src/components/auto-detect-volume/auto-detect-volume.tsx b/frontend/packages/local-storage-operator-plugin/src/components/auto-detect-volume/auto-detect-volume.tsx index cbecb32ccaec..8737c6542f8a 100644 --- a/frontend/packages/local-storage-operator-plugin/src/components/auto-detect-volume/auto-detect-volume.tsx +++ b/frontend/packages/local-storage-operator-plugin/src/components/auto-detect-volume/auto-detect-volume.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { match as RouterMatch } from 'react-router'; -import { ActionGroup, Button, Form } from '@patternfly/react-core'; +import { ActionGroup, Button, Form, TextVariants } from '@patternfly/react-core'; import { resourcePathFromModel, BreadCrumbs, @@ -105,7 +105,7 @@ const AutoDetectVolume: React.FC = withHandlePromise - + - + boolean; }; -export const LocalVolumeSetHeader = () => { +export const LocalVolumeSetHeader = ({ className, variant }) => { const { t } = useTranslation(); return ( <> -

{t('lso-plugin~Local Volume Set')}

+ + + {t('lso-plugin~Local Volume Set')} + +

{t( 'lso-plugin~A Local Volume Set allows you to filter a set of storage volumes group them and create a dedicated storage class to consume storage for them.',