@@ -26,7 +26,8 @@ export const StyledClassWrapper = styled('div')(() => ({
26
26
overflow : 'hidden' ,
27
27
position : 'absolute' ,
28
28
top : '-3px' ,
29
- left : '-3px'
29
+ left : '-3px' ,
30
+ zIndex : 10
30
31
} ) ) ;
31
32
32
33
export const TechnologyText = styled ( 'div' ) ( ( ) => ( {
@@ -126,7 +127,8 @@ export const DesignType = styled('span')(({ theme }) => ({
126
127
textTransform : 'capitalize' ,
127
128
background : theme . palette . background . brand ?. default ,
128
129
color : theme . palette . background . constant ?. white ,
129
- borderRadius : '0 1rem 0 2rem'
130
+ borderRadius : '0 1rem 0 2rem' ,
131
+ zIndex : 5
130
132
} ) ) ;
131
133
export const MetricsCount = styled ( 'p' ) ( ( { theme } ) => ( {
132
134
fontSize : '1rem' ,
@@ -137,21 +139,27 @@ export const MetricsCount = styled('p')(({ theme }) => ({
137
139
color : theme . palette . mode === 'light' ? DARK_TEAL : SNOW_WHITE ,
138
140
fontWeight : '600'
139
141
} ) ) ;
140
- export const DesignName = styled ( Typography ) ( ( { theme } ) => ( {
142
+ type DesignNameProps = {
143
+ hasRibbon ?: boolean ;
144
+ } ;
145
+
146
+ export const DesignName = styled ( Typography ) < DesignNameProps > ( ( { theme, hasRibbon } ) => ( {
141
147
fontWeight : 'bold' ,
142
148
textTransform : 'capitalize' ,
143
149
color : theme . palette . text . default ,
144
150
fontSize : '1.125rem' ,
145
- marginTop : '2rem' ,
146
151
padding : '0rem 1rem' ,
147
152
position : 'relative' ,
148
153
overflow : 'hidden' ,
149
154
whiteSpace : 'nowrap' ,
150
155
textOverflow : 'ellipsis' ,
151
156
textAlign : 'center' ,
152
157
width : '100%' ,
153
- margin : '2rem 0 1.59rem 0' ,
154
- fontFamily : 'inherit'
158
+ margin : hasRibbon ? '3.5rem 0 1.59rem 0' : '2rem 0 1.59rem 0' ,
159
+ fontFamily : 'inherit' ,
160
+ ...( hasRibbon && {
161
+ paddingLeft : '1.5rem'
162
+ } )
155
163
} ) ) ;
156
164
157
165
export const MetricsContainerFront = styled ( 'div' ) < MetricsProps > ( ( { isDetailed, theme } ) => ( {
@@ -361,6 +369,8 @@ export const CardFront = styled('div')<DesignCardDivProps>(({ shouldFlip, isDeta
361
369
const boxShadow = `2px 2px 3px 0px ${ theme . palette . background . brand ?. default } ` ;
362
370
363
371
return {
372
+ position : 'relative' ,
373
+ zIndex : 1 ,
364
374
...( shouldFlip && {
365
375
position : 'absolute' ,
366
376
boxShadow,
0 commit comments