Skip to content

Commit 1140ebb

Browse files
authored
Merge pull request #14444 from guardian/doml/carousel-hover
Don't underline headline when carousel image hovered
2 parents 3d0a4b8 + e14bd2b commit 1140ebb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dotcom-rendering/src/components/Card/components/CardWrapper.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ const hoverStyles = css`
5555
5656
/** We want to prevent the general hover styles applying when
5757
a click won't result in navigating to the main article */
58-
:has(ul.sublinks:hover, .loop-video-container:hover) {
58+
:has(
59+
ul.sublinks:hover,
60+
.loop-video-container:hover,
61+
.slideshow-carousel:hover
62+
) {
5963
.card-headline .show-underline {
6064
text-decoration: none;
6165
}

dotcom-rendering/src/components/SlideshowCarousel.importable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export const SlideshowCarousel = ({
192192
const slideshowImageCount = slideshowImages.length;
193193

194194
return (
195-
<div>
195+
<div className="slideshow-carousel">
196196
<ul
197197
ref={carouselRef}
198198
css={carouselStyles}

0 commit comments

Comments
 (0)