-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [M3-8915] - Improve UI for billing contact info when sensitive …
…data is masked (#11276) * Update display of masked billing contact info * Clean up MaskableText; use default export * Add test coverage for masked billing contact info section * Use consistent icon and allow umasking in panel * Address UX feedback: move the visibility icon and allow toggle * Add label to VisibilityTooltip * Skip test for now * Address feedback: use CDS 2.0 icons * Better implementation using icons directly, no tooltip * Clean up, clean up * Update test coverage * Added changeset: Improve billing contact info display when Mask Sensitive Data setting is enabled * Fix failing tests caused by icon replacement * Address feedback: switch order of buttons; stray Box styling clean up
- Loading branch information
Showing
13 changed files
with
189 additions
and
111 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-11276-changed-1732122131530.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Changed | ||
--- | ||
|
||
Improve billing contact info display when Mask Sensitive Data setting is enabled ([#11276](https://github.com/linode/manager/pull/11276)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
.../manager/src/features/Billing/BillingPanels/ContactInfoPanel/ContactInformation.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { styled } from '@mui/material/styles'; | ||
|
||
import VisibilityHideIcon from 'src/assets/icons/visibilityHide.svg'; | ||
import VisibilityShowIcon from 'src/assets/icons/visibilityShow.svg'; | ||
import { Typography } from 'src/components/Typography'; | ||
|
||
export const StyledTypography = styled(Typography)(({ theme }) => ({ | ||
'& .dif': { | ||
'& .MuiChip-root': { | ||
position: 'absolute', | ||
right: -10, | ||
top: '-4px', | ||
}, | ||
position: 'relative', | ||
width: 'auto', | ||
}, | ||
marginBottom: theme.spacing(1), | ||
})); | ||
|
||
export const StyledVisibilityShowIcon = styled(VisibilityShowIcon)( | ||
({ theme }) => ({ | ||
'& path': { | ||
stroke: theme.palette.primary.main, | ||
}, | ||
marginRight: theme.spacing(0.5), | ||
}) | ||
); | ||
|
||
// eslint-disable-next-line sonarjs/no-identical-functions | ||
export const StyledVisibilityHideIcon = styled(VisibilityHideIcon)( | ||
({ theme }) => ({ | ||
'& path': { | ||
stroke: theme.palette.primary.main, | ||
}, | ||
marginRight: theme.spacing(0.5), | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.