Skip to content

Commit bf38fac

Browse files
committed
Add overlay hover styles
1 parent 0a1ca60 commit bf38fac

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ const scrollingDotStyles = css`
112112
}
113113
`;
114114

115+
const mediaOverlayStyles = css`
116+
position: absolute;
117+
top: 0;
118+
left: 0;
119+
height: 100%;
120+
width: 100%;
121+
`;
122+
115123
type Props = {
116124
images: readonly DCRSlideshowImage[];
117125
imageSize: MediaSizeType;
@@ -236,6 +244,10 @@ export const SlideshowCarousel = ({
236244
</figcaption>
237245
)}
238246
</figure>
247+
<div
248+
css={mediaOverlayStyles}
249+
className="media-overlay"
250+
/>
239251
</li>
240252
);
241253
})}

dotcom-rendering/src/components/YoutubeAtom/YoutubeAtomFeatureCardOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ const hoverStyles = css`
4242
:hover .media-overlay {
4343
position: absolute;
4444
top: 0;
45+
left: 0;
4546
width: 100%;
4647
height: 100%;
47-
left: 0;
4848
background-color: ${palette('--card-background-hover')};
4949
}
5050

0 commit comments

Comments
 (0)