hds-web 1.17.0 → 1.17.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -54,7 +54,7 @@ export default function TalkCard2(props) {
54
54
  props.para && (
55
55
  <a href={props.readUrl}>
56
56
  <HDSButton
57
- label={props.videoUrl ? 'Watch video': 'Read more'}
57
+ label={props.videoUrl ? 'Watch Recording': 'Read more'}
58
58
  type='secondaryLink'
59
59
  leftIconVariant='none'
60
60
  rightIconVariant='none'
@@ -770,10 +770,12 @@ const HDSColors = {
770
770
  };
771
771
 
772
772
  export default function HDSColor(color = '') {
773
- if (!HDSColors[color]) {
774
- HDSColors[color] = color;
773
+ const modifiedColor = color.replace(/_/g, '-');
774
+
775
+ if (!HDSColors[modifiedColor]) {
776
+ HDSColors[modifiedColor] = modifiedColor;
775
777
  }
776
- return HDSColors[color];
778
+ return HDSColors[modifiedColor];
777
779
  }
778
780
 
779
781