Skip to content

Commit 146300a

Browse files
committed
background colour only for mobile
1 parent 83c4f83 commit 146300a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
from,
44
space,
55
textSansBold12,
6+
until,
67
width,
78
} from '@guardian/source/foundations';
89
import type { ThemeButton } from '@guardian/source/react-components';
@@ -73,9 +74,12 @@ const navigationStyles = (hasBackgroundColour: boolean) => css`
7374
display: flex;
7475
align-items: center;
7576
padding-top: ${space[2]}px;
76-
background-color: ${hasBackgroundColour
77-
? palette('--slideshow-navigation-background')
78-
: 'transparent'};
77+
78+
${until.tablet} {
79+
background-color: ${hasBackgroundColour
80+
? palette('--slideshow-navigation-background')
81+
: 'transparent'};
82+
}
7983
`;
8084

8185
const buttonStyles = css`
@@ -218,7 +222,7 @@ export const SlideshowCarousel = ({
218222
</ul>
219223

220224
{slideshowImageCount > 1 && (
221-
<div css={[navigationStyles(hasNavigationBackgroundColour)]}>
225+
<div css={navigationStyles(hasNavigationBackgroundColour)}>
222226
<div css={scrollingDotStyles}>
223227
<SlideshowCarouselScrollingDots
224228
total={slideshowImageCount}

0 commit comments

Comments
 (0)