diff --git a/packages/manager/src/assets/icons/visibilityHide.svg b/packages/manager/src/assets/icons/visibilityHide.svg new file mode 100644 index 00000000000..4fd7e5572df --- /dev/null +++ b/packages/manager/src/assets/icons/visibilityHide.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/manager/src/assets/icons/visibilityShow.svg b/packages/manager/src/assets/icons/visibilityShow.svg new file mode 100644 index 00000000000..858614cc421 --- /dev/null +++ b/packages/manager/src/assets/icons/visibilityShow.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/manager/src/features/Billing/BillingPanels/ContactInfoPanel/ContactInformation.tsx b/packages/manager/src/features/Billing/BillingPanels/ContactInfoPanel/ContactInformation.tsx index a0b52bcb08c..85ceac51845 100644 --- a/packages/manager/src/features/Billing/BillingPanels/ContactInfoPanel/ContactInformation.tsx +++ b/packages/manager/src/features/Billing/BillingPanels/ContactInfoPanel/ContactInformation.tsx @@ -182,7 +182,9 @@ export const ContactInformation = React.memo((props: Props) => { } sx={(theme) => ({ '& svg': { - color: theme.palette.primary.main, + '& path': { + stroke: theme.palette.primary.main, + }, }, marginRight: 2, })} diff --git a/packages/ui/src/components/VisibilityTooltip/VisibilityTooltip.tsx b/packages/ui/src/components/VisibilityTooltip/VisibilityTooltip.tsx index 2072b5c44aa..e2ef31946c2 100644 --- a/packages/ui/src/components/VisibilityTooltip/VisibilityTooltip.tsx +++ b/packages/ui/src/components/VisibilityTooltip/VisibilityTooltip.tsx @@ -1,5 +1,6 @@ -import VisibilityIcon from '@mui/icons-material/Visibility'; -import VisibilityOffIcon from '@mui/icons-material/VisibilityOff'; +import VisibilityShowIcon from 'src/assets/icons/visibilityShow.svg'; +import VisibilityHideIcon from 'src/assets/icons/visibilityHide.svg'; + import { styled } from '@mui/material/styles'; import React from 'react'; @@ -44,9 +45,9 @@ export const VisibilityTooltip = (props: Props) => { > {!isVisible ? ( - + ) : ( - + )} {label} @@ -58,13 +59,15 @@ const StyledToggleButton = styled(IconButton, { label: 'StyledToggleButton', })(({ theme }) => ({ '& svg': { - color: theme.palette.grey[500], - fontSize: '0.875rem', + '& path': { + stroke: theme.palette.grey[500], + }, }, '& svg:hover': { - color: theme.palette.primary.main, + '& path': { + stroke: theme.palette.primary.main, + }, }, - fontSize: '0.875rem', marginLeft: theme.spacing(), minHeight: 'auto', minWidth: 'auto',