File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,18 @@ const hoverStyles = css`
78
78
}
79
79
` ;
80
80
81
+ /** When we hover on sublinks, we want to prevent the general hover styles applying */
82
+ const sublinkHoverStyles = css `
83
+ : has (ul .sublinks : hover ) {
84
+ .card-headline .show-underline {
85
+ text-decoration : none;
86
+ }
87
+ .image-overlay {
88
+ background-color : transparent;
89
+ }
90
+ }
91
+ ` ;
92
+
81
93
const contentStyles = css `
82
94
display : flex;
83
95
flex-basis : 100% ;
@@ -332,7 +344,7 @@ export const FeatureCard = ({
332
344
return (
333
345
< FormatBoundary format = { format } >
334
346
< ContainerOverrides containerPalette = { containerPalette } >
335
- < div css = { [ baseCardStyles , hoverStyles ] } >
347
+ < div css = { [ baseCardStyles , hoverStyles , sublinkHoverStyles ] } >
336
348
{ ! showYoutubeVideo && (
337
349
< CardLink
338
350
linkTo = { linkTo }
You can’t perform that action at this time.
0 commit comments