Skip to content

Commit

Permalink
fix: [M3-8787] - Fix Alignment for Backup Label in Add-ons Panel (#11160
Browse files Browse the repository at this point in the history
)

* fix: [M3-8787] - Fix Alignment for Backup Label in Add-ons Panel

* Add changeset

* Implement changes after speaking with UX

* Final touches to make UI look uniform
  • Loading branch information
carrillo-erik authored Nov 21, 2024
1 parent 260c0b3 commit 18b2bf9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11160-fixed-1729811033133.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Alignment for Backup Label in Add-ons Panel ([#11160](https://github.com/linode/manager/pull/11160))
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ export const Backups = () => {
label={
<Stack spacing={1} sx={{ pl: 2 }}>
<Stack alignItems="center" direction="row" spacing={2}>
<Typography variant="h3">Backups</Typography>
<Typography component="span" variant="h3">
Backups
</Typography>
{backupsMonthlyPrice && (
<Typography>
<Typography component="span">
<Currency quantity={backupsMonthlyPrice} /> per month
</Typography>
)}
Expand All @@ -87,7 +89,7 @@ export const Backups = () => {
variant="warning"
/>
)}
<Typography>
<Typography component="span" display="block" variant="body1">
{isAccountBackupsEnabled ? (
<React.Fragment>
You have enabled automatic backups for your account. This Linode
Expand All @@ -108,6 +110,7 @@ export const Backups = () => {
control={<Checkbox />}
data-testid="backups"
onChange={field.onChange}
sx={{ alignItems: 'start' }}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ export const PrivateIP = () => {
return (
<FormControlLabel
label={
<Stack sx={{ pl: 2 }}>
<Typography variant="h3">Private IP</Typography>
<Typography>
<Stack spacing={1} sx={{ pl: 2 }}>
<Typography component="span" variant="h3">
Private IP
</Typography>
<Typography component="span" display="block" variant="body1">
Use Private IP for a backend node to a NodeBalancer. Use VPC instead
for private communication between your Linodes.
</Typography>
Expand All @@ -46,6 +48,7 @@ export const PrivateIP = () => {
control={<Checkbox />}
disabled={isDistributedRegionSelected || isLinodeCreateRestricted}
onChange={field.onChange}
sx={{ alignItems: 'start' }}
/>
);
};

0 comments on commit 18b2bf9

Please sign in to comment.