Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Removed `sxEndIcon` prop from Add Metric, Dimension Filter and Notification Channel buttons. ([#11825](https://github.com/linode/manager/pull/11825))
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const DimensionFilters = (props: DimensionFilterProps) => {
});

const dimensionFilterWatcher = useWatch({ control, name });

return (
<Box display="flex" flexDirection="column" gap={1}>
<Typography variant="h3">
Expand Down Expand Up @@ -61,13 +60,11 @@ export const DimensionFilters = (props: DimensionFilterProps) => {
value: null,
})
}
buttonType="secondary"
compactX
data-qa-buttons="true"
disabled={dimensionFilterWatcher && dimensionFilterWatcher.length === 5}
size="small"
sx={{ justifyContent: 'start', width: '150px' }}
sxEndIcon={{ display: 'none' }}
sx={{ justifyContent: 'start', width: '160px' }}
tooltipText="You can add up to 5 dimension filters."
>
Add dimension filter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Button, Stack, Typography } from '@linode/ui';
import { Button, Stack, Typography } from '@linode/ui';
import * as React from 'react';
import { useFieldArray, useFormContext, useWatch } from 'react-hook-form';

Expand Down Expand Up @@ -66,16 +66,9 @@ export const MetricCriteriaField = (props: MetricCriteriaProps) => {
});

return (
<Box sx={(theme) => ({ marginTop: theme.spacing(3) })}>
<Box
alignItems="center"
display="flex"
justifyContent="space-between"
sx={{ marginBottom: 1 }}
>
<Typography variant="h2">3. Criteria</Typography>
</Box>
<Stack spacing={2} sx={(theme) => ({ marginTop: theme.spacing(3) })}>
<Stack mt={3} spacing={2}>
<Typography variant="h2">3. Criteria</Typography>
<Stack spacing={2}>
{fields !== null &&
fields.length !== 0 &&
fields.map((field, index) => {
Expand All @@ -102,15 +95,16 @@ export const MetricCriteriaField = (props: MetricCriteriaProps) => {
threshold: 0,
})
}
sx={{
width: '130px', // added a nice width for the button
}}
buttonType="outlined"
disabled={metricCriteriaWatcher.length === 5}
size="medium"
sx={(theme) => ({ marginTop: theme.spacing(2) })}
sxEndIcon={{ display: 'none' }}
tooltipText="You can add up to 5 metrics."
>
Add metric
</Button>
</Box>
</Stack>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ export const AddChannelListing = (props: AddChannelListingProps) => {
onClick={handleOpenDrawer}
size="medium"
sx={(theme) => ({ marginTop: theme.spacing(2) })}
sxEndIcon={{ display: 'none' }}
tooltipText="You can add up to 5 notification channels."
type="button"
>
Add notification channel
</Button>
Expand Down