hds-web 1.16.9 → 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
@@ -54,7 +54,7 @@ export default function TalkCard2(props) {
|
|
54
54
|
props.para && (
|
55
55
|
<a href={props.readUrl}>
|
56
56
|
<HDSButton
|
57
|
-
|
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
|
-
|
774
|
-
|
773
|
+
const modifiedColor = color.replace(/_/g, '-');
|
774
|
+
|
775
|
+
if (!HDSColors[modifiedColor]) {
|
776
|
+
HDSColors[modifiedColor] = modifiedColor;
|
775
777
|
}
|
776
|
-
return HDSColors[
|
778
|
+
return HDSColors[modifiedColor];
|
777
779
|
}
|
778
780
|
|
779
781
|
|