@royaloperahouse/chord 1.6.1 → 1.6.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [1.6.2]
4
+ - ImpactHeader: add alt text for sponsors logo custom image
5
+
3
6
  ## [1.6.1]
4
7
  - PageHeadingHighlight component: update exports
5
8
 
@@ -2661,6 +2661,7 @@ var SponsorshipStyledIframe = /*#__PURE__*/styled__default.div(_templateObject2$
2661
2661
  var DEFAULT_SPONSORSHIP_IFRAME = 'https://static.roh.org.uk/rolex/v3/rolex.html?size=80';
2662
2662
  var DEFAULT_SPONSORSHIP_TITLE = 'rolex';
2663
2663
  var DEFAULT_DATA_ROH = 'ImgAdvert';
2664
+ var DEFAULT_SPONSORSHIP_ALT_TEXT = "Sponsor's logo";
2664
2665
 
2665
2666
  var Sponsorship = function Sponsorship(_ref) {
2666
2667
  var _ref$src = _ref.src,
@@ -2669,10 +2670,12 @@ var Sponsorship = function Sponsorship(_ref) {
2669
2670
  dataRoh = _ref$dataRoh === void 0 ? DEFAULT_DATA_ROH : _ref$dataRoh,
2670
2671
  _ref$title = _ref.title,
2671
2672
  title = _ref$title === void 0 ? DEFAULT_SPONSORSHIP_TITLE : _ref$title,
2673
+ _ref$altText = _ref.altText,
2674
+ altText = _ref$altText === void 0 ? DEFAULT_SPONSORSHIP_ALT_TEXT : _ref$altText,
2672
2675
  isCustomImage = _ref.isCustomImage;
2673
2676
  if (isCustomImage) return /*#__PURE__*/React__default.createElement(CustomImage, {
2674
2677
  src: src,
2675
- alt: title,
2678
+ alt: altText,
2676
2679
  "data-roh": dataRoh,
2677
2680
  "data-testid": "custom-sponsor"
2678
2681
  });