Skip to content

Commit f86957a

Browse files
Improve card styling consistency with Backstage design system (#1593)
1 parent 4d79286 commit f86957a

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-adoption-insights': patch
3+
---
4+
5+
Improve card styling consistency with Backstage design system
6+
7+
- Remove explicit borders from CardWrapper component to match standard Backstage card styling
8+
- Replace custom border styling with Material-UI Paper elevation system for consistent visual appearance
9+
- Update Divider component to use default styling without custom borders

workspaces/adoption-insights/plugins/adoption-insights/src/components/CardWrapper/CardWrapper.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ const CardWrapper: FC<CardWrapperProps> = ({
3232
filter,
3333
}: CardWrapperProps) => {
3434
return (
35-
<Box
36-
component={Paper}
37-
sx={{ border: theme => `1px solid ${theme.palette.grey[300]}` }}
38-
>
35+
<Paper elevation={1}>
3936
<Box sx={{ display: 'flex', justifyContent: 'space-between' }}>
4037
<Typography
4138
variant="h5"
@@ -51,11 +48,9 @@ const CardWrapper: FC<CardWrapperProps> = ({
5148

5249
{filter && <Box>{filter}</Box>}
5350
</Box>
54-
<Divider
55-
sx={{ border: theme => `1px solid ${theme.palette.grey[300]}` }}
56-
/>
51+
<Divider />
5752
<Box>{children}</Box>
58-
</Box>
53+
</Paper>
5954
);
6055
};
6156

0 commit comments

Comments
 (0)