@abgov/react-components 7.0.0-dev.7 → 7.0.0-dev.9

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.
@@ -26,6 +26,8 @@ export interface GoabIconProps extends Margins, DataAttributes {
26
26
  title?: string;
27
27
  /** Defines how the icon will be announced by screen readers. */
28
28
  ariaLabel?: string;
29
+ /** Sets the ARIA role for the icon. Use 'presentation' for decorative icons. @default "img" */
30
+ role?: string;
29
31
  /** Sets a data-testid attribute for automated testing. */
30
32
  testId?: string;
31
33
  }
@@ -38,6 +40,7 @@ interface WCProps extends Margins {
38
40
  opacity?: number;
39
41
  title?: string;
40
42
  arialabel?: string;
43
+ role?: string;
41
44
  testid?: string;
42
45
  }
43
46
  /** A simple and universal graphic symbol representing an action, object, or concept to help guide the user. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "7.0.0-dev.7",
3
+ "version": "7.0.0-dev.9",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"