Skip to content

Commit b5c697f

Browse files
fix: [M3-9894] - Use outlined warning icon in Firewall warning banner (linode#12159)
* Switch to outlined icon * Added changeset: Use outlined icon in Firewall warning banner * Feedback @abailly-akamai @mjac0bs
1 parent 2437b2e commit b5c697f

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Fixed
3+
---
4+
5+
Incorrect icon in Firewall warning banner to use outlined icon ([#12159](https://github.com/linode/manager/pull/12159))

packages/manager/src/components/AkamaiBanner/AkamaiBanner.styles.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Box, omittedProps, Stack, WarningIcon } from '@linode/ui';
1+
import { Box, omittedProps, Stack, WarningOutlinedIcon } from '@linode/ui';
22
import { styled } from '@mui/material/styles';
33

44
import AkamaiLogo from 'src/assets/logo/akamai-logo.svg';
@@ -14,10 +14,12 @@ export const StyledAkamaiLogo = styled(AkamaiLogo, {
1414
},
1515
}));
1616

17-
export const StyledWarningIcon = styled(WarningIcon, {
17+
export const StyledWarningIcon = styled(WarningOutlinedIcon, {
1818
label: 'StyledWarningIcon',
1919
})(({ theme }) => ({
20-
color: theme.tokens.color.Neutrals.Black,
20+
'& > path': {
21+
fill: theme.tokens.color.Neutrals.Black,
22+
},
2123
}));
2224

2325
export const StyledBanner = styled(Stack, {

packages/manager/src/components/AkamaiBanner/AkamaiBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const AkamaiBanner = React.memo((props: AkamaiBannerProps) => {
4343
warning={warning}
4444
>
4545
<StyledBannerLabel warning={warning}>
46-
<Stack alignItems="center" direction="row">
46+
<Stack alignItems={warning ? 'start' : 'center'} direction="row">
4747
<Box sx={{ height: 18, width: 25 }}>
4848
{warning ? (
4949
<StyledWarningIcon height={18} />

0 commit comments

Comments
 (0)