gatsby-core-theme 32.0.1 → 32.0.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,3 +1,15 @@
|
|
|
1
|
+
## [32.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.1...v32.0.2) (2024-05-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added props for aria-label and title ([747243c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/747243c71c7a3801644ebb98fb72174d39e1c467))
|
|
7
|
+
* ammended implementation ([19e26c1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/19e26c1fed853487a322da46c2625ed7ed246c03))
|
|
8
|
+
* implemented on cta ([5650f82](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/5650f82b871cc5d0447373d89f938a5373a8528d))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
* Merge branch 'tm-4323-pretty-link-props' into 'master' ([a8f0ca5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a8f0ca5c7b0edad285b74c6aaf0d4c17d6a965ae))
|
|
12
|
+
|
|
1
13
|
## [32.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.0...v32.0.1) (2024-05-30)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ const OperatorCtaButton = ({
|
|
|
18
18
|
buttonSize = '',
|
|
19
19
|
module = null,
|
|
20
20
|
tracker = 'main',
|
|
21
|
+
titleSuffix,
|
|
21
22
|
icon = null,
|
|
22
23
|
translationsObj = {
|
|
23
24
|
active: { translationKey: 'play_now', defaultValue: 'Visit' },
|
|
@@ -74,8 +75,12 @@ const OperatorCtaButton = ({
|
|
|
74
75
|
return status === 'active' ? (
|
|
75
76
|
<a
|
|
76
77
|
href={prettyLink || '#'}
|
|
77
|
-
title={typeof translateBtn === 'string' ? translateBtn : ''}
|
|
78
|
-
|
|
78
|
+
title={`${typeof translateBtn === 'string' ? translateBtn : ''} ${
|
|
79
|
+
titleSuffix || ''
|
|
80
|
+
}`.trimEnd()}
|
|
81
|
+
aria-label={`${typeof translateBtn === 'string' ? translateBtn : ''} ${
|
|
82
|
+
titleSuffix || ''
|
|
83
|
+
}`.trimEnd()}
|
|
79
84
|
className={`${classes} ${gtmClass}`}
|
|
80
85
|
target="_blank"
|
|
81
86
|
rel={rel}
|
|
@@ -86,8 +91,12 @@ const OperatorCtaButton = ({
|
|
|
86
91
|
</a>
|
|
87
92
|
) : (
|
|
88
93
|
<div
|
|
89
|
-
title={typeof translateBtn === 'string' ? translateBtn : ''}
|
|
90
|
-
|
|
94
|
+
title={`${typeof translateBtn === 'string' ? translateBtn : ''} ${
|
|
95
|
+
titleSuffix || ''
|
|
96
|
+
}`.trimEnd()}
|
|
97
|
+
aria-label={`${typeof translateBtn === 'string' ? translateBtn : ''} ${
|
|
98
|
+
titleSuffix || ''
|
|
99
|
+
}`.trimEnd()}
|
|
91
100
|
className={`${classes || ''} ${gtmClass || ''}`}
|
|
92
101
|
>
|
|
93
102
|
{translateBtn}
|
|
@@ -101,6 +110,7 @@ OperatorCtaButton.propTypes = {
|
|
|
101
110
|
name: PropTypes.string,
|
|
102
111
|
status: PropTypes.string,
|
|
103
112
|
}),
|
|
113
|
+
titleSuffix: PropTypes.string,
|
|
104
114
|
gtmClass: PropTypes.string,
|
|
105
115
|
pageTemplate: PropTypes.string,
|
|
106
116
|
buttonSize: PropTypes.string,
|
|
@@ -12,7 +12,7 @@ const PrettyLink = ({
|
|
|
12
12
|
pageTemplate,
|
|
13
13
|
module,
|
|
14
14
|
tracker,
|
|
15
|
-
|
|
15
|
+
titleSuffix,
|
|
16
16
|
className,
|
|
17
17
|
children,
|
|
18
18
|
rel = 'nofollow noreferrer sponsored',
|
|
@@ -48,11 +48,11 @@ const PrettyLink = ({
|
|
|
48
48
|
return (
|
|
49
49
|
<a
|
|
50
50
|
href={prettyLink || '#'}
|
|
51
|
-
title={operator?.name}
|
|
51
|
+
title={`${operator?.name} ${titleSuffix || ''}`.trimEnd()}
|
|
52
52
|
className={className}
|
|
53
53
|
target="_blank"
|
|
54
54
|
rel={rel}
|
|
55
|
-
aria-label={`${operator?.name} Link`}
|
|
55
|
+
aria-label={`${operator?.name} ${titleSuffix || 'Link'}`}
|
|
56
56
|
onClick={onCTAClick}
|
|
57
57
|
>
|
|
58
58
|
{children}
|
|
@@ -66,8 +66,8 @@ PrettyLink.propTypes = {
|
|
|
66
66
|
}),
|
|
67
67
|
pageTemplate: PropTypes.string,
|
|
68
68
|
module: PropTypes.string,
|
|
69
|
+
titleSuffix: PropTypes.string,
|
|
69
70
|
tracker: PropTypes.string,
|
|
70
|
-
clickedElement: PropTypes.string,
|
|
71
71
|
className: PropTypes.string,
|
|
72
72
|
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node, PropTypes.any]),
|
|
73
73
|
rel: PropTypes.string,
|
|
@@ -11,6 +11,7 @@ export default function BonusBox({
|
|
|
11
11
|
splitBy = '+',
|
|
12
12
|
feSeparator = '+',
|
|
13
13
|
module = 'bonus_box',
|
|
14
|
+
titleSuffix,
|
|
14
15
|
}) {
|
|
15
16
|
const data = getBonusData(item, tracker, splitBy);
|
|
16
17
|
|
|
@@ -20,6 +21,7 @@ export default function BonusBox({
|
|
|
20
21
|
pageTemplate={pageTemplate}
|
|
21
22
|
module={module}
|
|
22
23
|
tracker={tracker}
|
|
24
|
+
titleSuffix={titleSuffix}
|
|
23
25
|
clickedElement="oneliner"
|
|
24
26
|
className={`${styles.detailsBox} ${'bonus-box-gtm'}`}
|
|
25
27
|
>
|
|
@@ -38,4 +40,5 @@ BonusBox.propTypes = {
|
|
|
38
40
|
splitBy: PropTypes.string,
|
|
39
41
|
feSeparator: PropTypes.string,
|
|
40
42
|
module: PropTypes.string,
|
|
43
|
+
titleSuffix: PropTypes.string,
|
|
41
44
|
};
|