Skip to content

Commit

Permalink
feat(odyssey-react): add Box wrapper to RadioButton
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewberg-okta committed Dec 21, 2021
1 parent 15a9693 commit 31938c6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import React, { forwardRef } from "react";
import type { ComponentPropsWithRef } from "react";
import { withTheme } from "@okta/odyssey-react-theme";
import { useRadioGroup } from "../context";
import { Box } from "../../Box";
import { useCx, useOid, useOmit } from "../../../utils";
import type { SharedFieldTypes } from "../../Field/types";
import styles from "./RadioButton.module.scss";
Expand Down Expand Up @@ -71,7 +72,7 @@ export const RadioButton = withTheme(
);

return (
<>
<Box>
<input
{...omitProps}
aria-describedby={ariaDescribedBy}
Expand All @@ -87,7 +88,7 @@ export const RadioButton = withTheme(
value={value}
/>
<label children={label} className={styles.label} htmlFor={oid} />
</>
</Box>
);
})
);
Expand Down

0 comments on commit 31938c6

Please sign in to comment.