Skip to content

Commit 3dc3aef

Browse files
authored
fix: Fix text in documentation for Button's form prop (#3319)
1 parent ca70240 commit 3dc3aef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -3261,7 +3261,7 @@ If an href is provided, it opens the link in a new tab.",
32613261
},
32623262
{
32633263
"description": "The id of the <form> element to associate with the button. The value of this attribute must be the id of a <form> in the same document.
3264-
Use when a button is not the ancestor of a form element, such as when used in a modal.",
3264+
Use when a button is not the descendant of a form element, such as when used in a modal.",
32653265
"name": "form",
32663266
"optional": true,
32673267
"type": "string",

src/button/interfaces.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export interface ButtonProps extends BaseComponentProps, BaseButtonProps {
139139
download?: boolean | string;
140140

141141
/** The id of the <form> element to associate with the button. The value of this attribute must be the id of a <form> in the same document.
142-
* Use when a button is not the ancestor of a form element, such as when used in a modal.
142+
* Use when a button is not the descendant of a form element, such as when used in a modal.
143143
*/
144144
form?: string;
145145

0 commit comments

Comments
 (0)