Skip to content

Commit a23c4bf

Browse files
authored
Merge branch 'master' into ENG-5005-video-banner-bugs
2 parents bc761d9 + 3a4220f commit a23c4bf

2 files changed

Lines changed: 61 additions & 1 deletion

File tree

src/components/Organisms/RichtextCarousel/RichtextCarousel.style.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@ const CarouselWrapper = styled.div`
5353
margin: 0 auto;
5454
5555
border-radius: 20px;
56-
${defaultBoxShadow()}
56+
${defaultBoxShadow()}
57+
58+
> div:first-child {
59+
* {
60+
margin-top: 0;
61+
}
62+
63+
h1, h2, h3 {
64+
margin-bottom: 1.5rem;
65+
}
66+
}
5767
5868
.carousel {
5969
position: relative;
@@ -236,6 +246,16 @@ const CarouselWrapper = styled.div`
236246
align-items: center;
237247
justify-content: flex-start;
238248
flex-direction: column;
249+
250+
.slide-copy-wrapper {
251+
font-size: 0.9rem;
252+
line-height: 0.9rem;
253+
254+
* {
255+
font-size: inherit;
256+
line-height: inherit;
257+
}
258+
}
239259
}
240260
}
241261
}

src/components/Organisms/RichtextCarousel/RichtextCarousel.test.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ it('renders default padding version correctly', () => {
2828
box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
2929
}
3030
31+
.c1 > div:first-child * {
32+
margin-top: 0;
33+
}
34+
35+
.c1 > div:first-child h1,
36+
.c1 > div:first-child h2,
37+
.c1 > div:first-child h3 {
38+
margin-bottom: 1.5rem;
39+
}
40+
3141
.c1 .carousel {
3242
position: relative;
3343
margin: 0 auto;
@@ -122,6 +132,16 @@ it('renders default padding version correctly', () => {
122132
flex-direction: column;
123133
}
124134
135+
.c1 .carousel .richtext-carousel .carousel__slide .carousel__inner-slide .slide-copy-wrapper {
136+
font-size: 0.9rem;
137+
line-height: 0.9rem;
138+
}
139+
140+
.c1 .carousel .richtext-carousel .carousel__slide .carousel__inner-slide .slide-copy-wrapper * {
141+
font-size: inherit;
142+
line-height: inherit;
143+
}
144+
125145
.c0 {
126146
background-color: #F4F3F5;
127147
padding: 2rem 0 2rem;
@@ -285,6 +305,16 @@ it('renders custom padding + background colour version correctly', () => {
285305
box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
286306
}
287307
308+
.c1 > div:first-child * {
309+
margin-top: 0;
310+
}
311+
312+
.c1 > div:first-child h1,
313+
.c1 > div:first-child h2,
314+
.c1 > div:first-child h3 {
315+
margin-bottom: 1.5rem;
316+
}
317+
288318
.c1 .carousel {
289319
position: relative;
290320
margin: 0 auto;
@@ -379,6 +409,16 @@ it('renders custom padding + background colour version correctly', () => {
379409
flex-direction: column;
380410
}
381411
412+
.c1 .carousel .richtext-carousel .carousel__slide .carousel__inner-slide .slide-copy-wrapper {
413+
font-size: 0.9rem;
414+
line-height: 0.9rem;
415+
}
416+
417+
.c1 .carousel .richtext-carousel .carousel__slide .carousel__inner-slide .slide-copy-wrapper * {
418+
font-size: inherit;
419+
line-height: inherit;
420+
}
421+
382422
.c0 {
383423
background-color: #86E4E9;
384424
padding: 4rem 0 4rem;

0 commit comments

Comments
 (0)