File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
workspaces/adoption-insights
plugins/adoption-insights/src/components/CardWrapper Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments