Skip to content

Commit ad5438f

Browse files
Remove negative margins
No longer needed after removing accordion component
1 parent e370285 commit ad5438f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,13 @@ const carouselStyles = css`
3131
scroll-behavior: smooth;
3232
overflow-x: auto;
3333
overflow-y: hidden;
34-
margin-right: -10px;
35-
${from.tablet} {
36-
margin-right: -20px;
34+
scrollbar-width: none;
35+
&::-webkit-scrollbar {
36+
display: none;
3737
}
3838
3939
${from.desktop} {
40-
margin-right: 0px;
4140
background-color: ${palette('--key-event-background-desktop')};
42-
scrollbar-width: none;
43-
&::-webkit-scrollbar {
44-
display: none;
45-
}
4641
}
4742
`;
4843
const leftMarginStyles = css`

0 commit comments

Comments
 (0)