From 64a168f12ddceeaac47d845a8754f49673e2e3ff Mon Sep 17 00:00:00 2001 From: Hana Xu Date: Tue, 1 Oct 2024 11:54:48 -0400 Subject: [PATCH] fix multiple ip css issues --- .../CreateCluster/ControlPlaneACLPane.tsx | 36 +++++------ .../KubeControlPaneACLDrawer.tsx | 62 +++++++++---------- 2 files changed, 47 insertions(+), 51 deletions(-) diff --git a/packages/manager/src/features/Kubernetes/CreateCluster/ControlPlaneACLPane.tsx b/packages/manager/src/features/Kubernetes/CreateCluster/ControlPlaneACLPane.tsx index 352a6ff9afd..736db8f4cc3 100644 --- a/packages/manager/src/features/Kubernetes/CreateCluster/ControlPlaneACLPane.tsx +++ b/packages/manager/src/features/Kubernetes/CreateCluster/ControlPlaneACLPane.tsx @@ -57,21 +57,19 @@ export const ControlPlaneACLPane = (props: ControlPlaneACLProps) => { ); return ( - - ({ - '&&.MuiFormLabel-root.Mui-focused': { - color: theme.name === 'dark' ? 'white' : theme.color.black, - }, - })} - id="ipacl-radio-buttons-group-label" - > - - Control Plane Access Control (IPACL) + <> + + + + Control Plane Access Control (IPACL) + + + + This is the text for Control Plane Access Control.{' '} + + Learn more. + - - - { onChange={(e) => handleChange(e)} /> } - label={'Enable IPACL'} + label="Enable IPACL" /> - + {enableControlPlaneACL && ( - + { placeholder="::/0" title="IPv6 Addresses or CIDRs" /> - + )} - + ); }; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeControlPaneACLDrawer.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeControlPaneACLDrawer.tsx index 07e05732d58..f9239bf1a82 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeControlPaneACLDrawer.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeControlPaneACLDrawer.tsx @@ -324,40 +324,39 @@ export const KubeControlPlaneACLDrawer = (props: Props) => { )} - - - { - const validatedIPs = validateIPs(_ips, { - allowEmptyAddress: false, - errorMessage: 'Must be a valid IPv4 address.', - }); - handleIPv4ChangeCB(validatedIPs); - }} - placeholder="0.0.0.0/0" - title="IPv4 Addresses or CIDRs" - /> - { - const validatedIPs = validateIPs(_ips, { - allowEmptyAddress: false, - errorMessage: 'Must be a valid IPv6 address.', - }); - handleIPv6ChangeCB(validatedIPs); - }} - placeholder="::/0" - title="IPv6 Addresses or CIDRs" - /> - + + { + const validatedIPs = validateIPs(_ips, { + allowEmptyAddress: false, + errorMessage: 'Must be a valid IPv4 address.', + }); + handleIPv4ChangeCB(validatedIPs); + }} + placeholder="0.0.0.0/0" + title="IPv4 Addresses or CIDRs" + /> + { + const validatedIPs = validateIPs(_ips, { + allowEmptyAddress: false, + errorMessage: 'Must be a valid IPv6 address.', + }); + handleIPv6ChangeCB(validatedIPs); + }} + placeholder="::/0" + title="IPv6 Addresses or CIDRs" + /> + { }} secondaryButtonProps={{ label: 'Cancel', onClick: closeDrawer }} /> -