From d3116fc5d0163fcbaef1dac9ec4f00083e3379f4 Mon Sep 17 00:00:00 2001 From: Jonas Carlsen Date: Thu, 31 Oct 2024 16:52:22 +0100 Subject: [PATCH] fix: Do not render RadioGroupLabel as label. It should be a div --- packages/primitives/src/RadioGroup.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/primitives/src/RadioGroup.tsx b/packages/primitives/src/RadioGroup.tsx index 3c4eb94c45..7eacb802a0 100644 --- a/packages/primitives/src/RadioGroup.tsx +++ b/packages/primitives/src/RadioGroup.tsx @@ -11,7 +11,6 @@ import { RadioGroup, radioGroupAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; -import { Label } from "./Label"; import { Text, type TextProps } from "./Text"; const radioGroupRecipe = sva({ @@ -142,9 +141,11 @@ export const InternalRadioGroupLabel = withContext( - ({ textStyle = "label.large", children, ...props }, ref) => ( - - + ({ textStyle = "label.large", fontWeight = "bold", children, ...props }, ref) => ( + + + {children} + ), );