@codecademy/gamut 67.6.1-alpha.1b85c1.0 → 67.6.1-alpha.1bf8a5.0

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.
@@ -10,6 +10,11 @@ export type InfoTipProps = TipBaseProps & {
10
10
  * ID of an element that labels the InfoTip button. Its recommended to provide either `ariaLabel` or `ariaLabelledby`.
11
11
  */
12
12
  ariaLabelledby?: string;
13
+ /**
14
+ * Accessible role description for the InfoTip button. Useful for translation.
15
+ * @default "More information button"
16
+ */
17
+ ariaRoleDescription?: string;
13
18
  emphasis?: 'low' | 'high';
14
19
  /**
15
20
  * When true, the InfoTip button will be labelled by the form field's label element.
@@ -11,6 +11,7 @@ export const InfoTip = ({
11
11
  alignment = 'top-right',
12
12
  ariaLabel,
13
13
  ariaLabelledby,
14
+ ariaRoleDescription = 'More information button',
14
15
  emphasis = 'low',
15
16
  info,
16
17
  onClick,
@@ -146,7 +147,7 @@ export const InfoTip = ({
146
147
  "aria-expanded": !isTipHidden,
147
148
  "aria-label": ariaLabel,
148
149
  "aria-labelledby": ariaLabelledby,
149
- "aria-roledescription": "More information button",
150
+ "aria-roledescription": ariaRoleDescription,
150
151
  emphasis: emphasis,
151
152
  ref: buttonRef,
152
153
  onClick: clickHandler
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/gamut",
3
3
  "description": "Styleguide & Component library for Codecademy",
4
- "version": "67.6.1-alpha.1b85c1.0",
4
+ "version": "67.6.1-alpha.1bf8a5.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/gamut-icons": "9.53.0",
@@ -56,5 +56,5 @@
56
56
  "dist/**/[A-Z]**/[A-Z]*.js",
57
57
  "dist/**/[A-Z]**/index.js"
58
58
  ],
59
- "gitHead": "30755293c47b687536c0754f42df0728610986db"
59
+ "gitHead": "3ea4041455bf67ec353aae224820db1d8068fafc"
60
60
  }