@abgov/react-components 7.2.0-dev.37 → 7.2.0-dev.39
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/index.js +2 -0
- package/index.js.map +1 -1
- package/index.mjs +2 -0
- package/index.mjs.map +1 -1
- package/lib/button/button.d.ts +4 -1
- package/package.json +1 -1
package/lib/button/button.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ interface WCProps extends Margins {
|
|
|
7
7
|
disabled?: string;
|
|
8
8
|
leadingicon?: string;
|
|
9
9
|
trailingicon?: string;
|
|
10
|
+
arialabel?: string;
|
|
10
11
|
width?: string;
|
|
11
12
|
testid?: string;
|
|
12
13
|
action?: string;
|
|
@@ -36,6 +37,8 @@ export interface GoabButtonProps extends Margins, DataAttributes {
|
|
|
36
37
|
leadingIcon?: GoabIconType;
|
|
37
38
|
/** Icon displayed after the button text. */
|
|
38
39
|
trailingIcon?: GoabIconType;
|
|
40
|
+
/** Sets the accessible name. Include the visible button text in the value. */
|
|
41
|
+
ariaLabel?: string;
|
|
39
42
|
/** Sets a custom width for the button (e.g., "200px", "100%" or "fit-content"). */
|
|
40
43
|
width?: string;
|
|
41
44
|
/** Callback fired when the button is clicked. */
|
|
@@ -52,5 +55,5 @@ export interface GoabButtonProps extends Margins, DataAttributes {
|
|
|
52
55
|
children?: ReactNode;
|
|
53
56
|
}
|
|
54
57
|
/** Carry out an important action or navigate to another page. */
|
|
55
|
-
export declare function GoabButton({ disabled, onClick, actionArgs, actionArg, children, ...rest }: GoabButtonProps): JSX.Element;
|
|
58
|
+
export declare function GoabButton({ disabled, onClick, actionArgs, actionArg, ariaLabel, children, ...rest }: GoabButtonProps): JSX.Element;
|
|
56
59
|
export default GoabButton;
|