Skip to content

Commit

Permalink
chore: add id as prop to jaunty label for accessibility purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalisin committed Dec 11, 2024
1 parent 0bc5ae6 commit b0dc56f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import { OakBox, OakBoxProps } from "@/components/atoms";

export type OakJauntyAngleLabelProps = {
label: string;
id?: string;
} & Omit<OakBoxProps, "onClick" | "label">;
export const OakJauntyAngleLabel = (props: OakJauntyAngleLabelProps) => {
const { label, ...oakBoxProps } = props;
const { label, id, ...oakBoxProps } = props;
return (
<OakBox
id={id}
$borderRadius={"border-radius-m"}
$ph={"inner-padding-xs"}
$pv={"inner-padding-ssx"}
Expand Down

0 comments on commit b0dc56f

Please sign in to comment.