Skip to content

Commit

Permalink
fix(button-toggle-group): ensure that id prop is passed to FormField
Browse files Browse the repository at this point in the history
  • Loading branch information
DipperTheDan committed Jun 14, 2022
1 parent 5fb6cf5 commit 0b81a5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const ButtonToggleGroup = ({
"data-element": dataElement,
"data-role": dataRole,
helpAriaLabel,
id,
...props
}) => {
const validationProps = {
Expand All @@ -62,6 +63,7 @@ const ButtonToggleGroup = ({
data-component={dataComponent}
data-role={dataRole}
data-element={dataElement}
id={id}
{...validationProps}
{...filterStyledSystemMarginProps(props)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const formFieldProps = [
["labelInline", true],
["labelWidth", 30],
["labelAlign", "right"],
["id", "foo"],
];

const buttonToggleGroupVariants = {
Expand Down

0 comments on commit 0b81a5e

Please sign in to comment.