@comicrelief/component-library 8.53.0 → 8.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,7 +74,7 @@ import variants from './_variants';
74
74
  imageLow={defaultData.heroBannerImage}
75
75
  imageAltText="Image alt text"
76
76
  variant={variants.FULL_HEIGHT}
77
- ctaText="Register to fundraise but longer"
77
+ ctaText="Register to fundraise but very very very very long oh it's a big link this one"
78
78
  ctaUrl="http://www.comicrelief.com/register"
79
79
  ctaNewTab
80
80
  copyLeft
@@ -133,7 +133,7 @@ const CopyOuterWrapper = exports.CopyOuterWrapper = _styledComponents.default.di
133
133
  const Copy = exports.Copy = _styledComponents.default.div.withConfig({
134
134
  displayName: "HeroBannerstyle__Copy",
135
135
  componentId: "sc-2ch4eo-4"
136
- })(["width:100%;", ";border-radius:1rem;padding:", ";color:", ";background-color:", ";", ";", ";@media ", "{width:", ";}"], (0, _zIndex.default)('low'), _ref17 => {
136
+ })(["width:100%;", ";border-radius:1rem;padding:", ";color:", ";box-shadow:rgba(0,0,0,0.15) 0px 0px 1.5rem;background-color:", ";", ";", ";@media ", "{width:", ";}"], (0, _zIndex.default)('low'), _ref17 => {
137
137
  let {
138
138
  variant
139
139
  } = _ref17;
@@ -186,7 +186,7 @@ const Copy = exports.Copy = _styledComponents.default.div.withConfig({
186
186
  const CopyInnerWrapper = exports.CopyInnerWrapper = _styledComponents.default.div.withConfig({
187
187
  displayName: "HeroBannerstyle__CopyInnerWrapper",
188
188
  componentId: "sc-2ch4eo-5"
189
- })(["width:100%;height:100%;display:flex;align-items:center;@media ", "{height:auto;", ";", ";justify-content:", ";}"], _ref24 => {
189
+ })(["width:100%;height:100%;display:flex;align-items:center;border-radius:1rem;@media ", "{height:auto;", ";", ";justify-content:", ";}"], _ref24 => {
190
190
  let {
191
191
  theme
192
192
  } = _ref24;
@@ -210,7 +210,7 @@ const CopyInnerWrapper = exports.CopyInnerWrapper = _styledComponents.default.di
210
210
  const CTAWrapper = exports.CTAWrapper = _styledComponents.default.div.withConfig({
211
211
  displayName: "HeroBannerstyle__CTAWrapper",
212
212
  componentId: "sc-2ch4eo-6"
213
- })(["width:100%;height:auto;position:relative;padding:0.5rem 0;margin-top:1.25rem;", ""], _ref28 => {
213
+ })(["width:100%;height:auto;position:relative;padding:0.5rem 2.5rem 0 0;margin-top:1.25rem;", ""], _ref28 => {
214
214
  let {
215
215
  variant
216
216
  } = _ref28;
@@ -236,7 +236,7 @@ const CtaTextUnderline = exports.CtaTextUnderline = _styledComponents.default.im
236
236
  const HeroBannerLink = exports.HeroBannerLink = _styledComponents.default.a.withConfig({
237
237
  displayName: "HeroBannerstyle__HeroBannerLink",
238
238
  componentId: "sc-2ch4eo-10"
239
- })(["text-decoration:none;width:100%;@media ", "{", " width:", ";> div{width:100%;}&:hover{img.cta-text-underline{opacity:1;}}}"], _ref30 => {
239
+ })(["text-decoration:none;width:100%;> div{transition:box-shadow 0.35s;box-shadow:rgba(0,0,0,0.15) 0px 0px 1.5rem;}&:hover{> div{box-shadow:rgba(0,0,0,0.25) 0px 0px 1.5rem;}}@media ", "{", " width:", ";> div{width:100%;}&:hover{img.cta-text-underline{opacity:1;}}}"], _ref30 => {
240
240
  let {
241
241
  theme
242
242
  } = _ref30;
@@ -116,6 +116,7 @@ exports[`renders "Full Height Media" Hero Banner correctly 1`] = `
116
116
  border-radius: 1rem;
117
117
  padding: 1.5rem;
118
118
  color: #000000;
119
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1.5rem;
119
120
  background-color: #FFFFFF;
120
121
  }
121
122
 
@@ -130,6 +131,7 @@ exports[`renders "Full Height Media" Hero Banner correctly 1`] = `
130
131
  -webkit-box-align: center;
131
132
  -ms-flex-align: center;
132
133
  align-items: center;
134
+ border-radius: 1rem;
133
135
  }
134
136
 
135
137
  @media (min-width:740px) {
@@ -435,6 +437,7 @@ exports[`renders "Half Height Media" Hero Banner correctly 1`] = `
435
437
  border-radius: 1rem;
436
438
  padding: 1.5rem;
437
439
  color: #000000;
440
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1.5rem;
438
441
  background-color: #FFFFFF;
439
442
  }
440
443
 
@@ -449,6 +452,7 @@ exports[`renders "Half Height Media" Hero Banner correctly 1`] = `
449
452
  -webkit-box-align: center;
450
453
  -ms-flex-align: center;
451
454
  align-items: center;
455
+ border-radius: 1rem;
452
456
  }
453
457
 
454
458
  @media (min-width:740px) {
@@ -736,6 +740,7 @@ exports[`renders "Text Banner" Hero Banner correctly 1`] = `
736
740
  border-radius: 1rem;
737
741
  padding: 3rem 1.5rem;
738
742
  color: #000000;
743
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1.5rem;
739
744
  background-color: #2C0230;
740
745
  text-align: center;
741
746
  }
@@ -751,6 +756,7 @@ exports[`renders "Text Banner" Hero Banner correctly 1`] = `
751
756
  -webkit-box-align: center;
752
757
  -ms-flex-align: center;
753
758
  align-items: center;
759
+ border-radius: 1rem;
754
760
  }
755
761
 
756
762
  @media (min-width:740px) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "8.53.0",
4
+ "version": "8.53.1",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -74,7 +74,7 @@ import variants from './_variants';
74
74
  imageLow={defaultData.heroBannerImage}
75
75
  imageAltText="Image alt text"
76
76
  variant={variants.FULL_HEIGHT}
77
- ctaText="Register to fundraise but longer"
77
+ ctaText="Register to fundraise but very very very very long oh it's a big link this one"
78
78
  ctaUrl="http://www.comicrelief.com/register"
79
79
  ctaNewTab
80
80
  copyLeft
@@ -136,6 +136,7 @@ const Copy = styled.div`
136
136
  border-radius: 1rem;
137
137
  padding: ${({ variant }) => (variant === variants.TEXT_BANNER ? '3rem 1.5rem' : '1.5rem')};
138
138
  color: ${({ theme, copyColour }) => theme.color(copyColour)};
139
+ box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 1.5rem;
139
140
 
140
141
  background-color: ${({ theme, variant, textBannerCopyBackgroundColour }) => (variant === variants.TEXT_BANNER
141
142
  ? theme.color(textBannerCopyBackgroundColour)
@@ -165,6 +166,7 @@ const CopyInnerWrapper = styled.div`
165
166
  height: 100%;
166
167
  display: flex;
167
168
  align-items: center;
169
+ border-radius: 1rem;
168
170
 
169
171
  @media ${({ theme }) => theme.breakpoints2026('L')} {
170
172
  height: auto;
@@ -184,7 +186,7 @@ const CTAWrapper = styled.div`
184
186
  width: 100%;
185
187
  height: auto;
186
188
  position: relative;
187
- padding: 0.5rem 0;
189
+ padding: 0.5rem 2.5rem 0 0;
188
190
  margin-top: 1.25rem;
189
191
 
190
192
  ${({ variant }) => (variant !== variants.TEXT_BANNER && css`
@@ -221,7 +223,18 @@ const CtaTextUnderline = styled.img`
221
223
  const HeroBannerLink = styled.a`
222
224
  text-decoration: none;
223
225
  width: 100%;
224
-
226
+
227
+ > div {
228
+ transition: box-shadow 0.35s;
229
+ box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 1.5rem;
230
+ }
231
+
232
+ &:hover {
233
+ > div {
234
+ box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 1.5rem;
235
+ }
236
+ }
237
+
225
238
  @media ${({ theme }) => theme.breakpoints2026('L')} {
226
239
 
227
240
  ${bounceUpAnimation(true, 10, 2)}
@@ -116,6 +116,7 @@ exports[`renders "Full Height Media" Hero Banner correctly 1`] = `
116
116
  border-radius: 1rem;
117
117
  padding: 1.5rem;
118
118
  color: #000000;
119
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1.5rem;
119
120
  background-color: #FFFFFF;
120
121
  }
121
122
 
@@ -130,6 +131,7 @@ exports[`renders "Full Height Media" Hero Banner correctly 1`] = `
130
131
  -webkit-box-align: center;
131
132
  -ms-flex-align: center;
132
133
  align-items: center;
134
+ border-radius: 1rem;
133
135
  }
134
136
 
135
137
  @media (min-width:740px) {
@@ -435,6 +437,7 @@ exports[`renders "Half Height Media" Hero Banner correctly 1`] = `
435
437
  border-radius: 1rem;
436
438
  padding: 1.5rem;
437
439
  color: #000000;
440
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1.5rem;
438
441
  background-color: #FFFFFF;
439
442
  }
440
443
 
@@ -449,6 +452,7 @@ exports[`renders "Half Height Media" Hero Banner correctly 1`] = `
449
452
  -webkit-box-align: center;
450
453
  -ms-flex-align: center;
451
454
  align-items: center;
455
+ border-radius: 1rem;
452
456
  }
453
457
 
454
458
  @media (min-width:740px) {
@@ -736,6 +740,7 @@ exports[`renders "Text Banner" Hero Banner correctly 1`] = `
736
740
  border-radius: 1rem;
737
741
  padding: 3rem 1.5rem;
738
742
  color: #000000;
743
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1.5rem;
739
744
  background-color: #2C0230;
740
745
  text-align: center;
741
746
  }
@@ -751,6 +756,7 @@ exports[`renders "Text Banner" Hero Banner correctly 1`] = `
751
756
  -webkit-box-align: center;
752
757
  -ms-flex-align: center;
753
758
  align-items: center;
759
+ border-radius: 1rem;
754
760
  }
755
761
 
756
762
  @media (min-width:740px) {