From 16ae5822e7229d63322232dbc755235b8a9a91ba Mon Sep 17 00:00:00 2001 From: Michael Chappell <7581002+mchappell@users.noreply.github.com> Date: Thu, 1 Aug 2024 11:20:43 +0100 Subject: [PATCH] fix!: resolve issue 'The label's for attribute doesn't match any element id' --- src/design-system/text-box/text-box.component.tsx | 6 ++++-- src/design-system/text-box/text-box.stories.tsx | 14 ++++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/design-system/text-box/text-box.component.tsx b/src/design-system/text-box/text-box.component.tsx index 716e80b..8f2f23d 100644 --- a/src/design-system/text-box/text-box.component.tsx +++ b/src/design-system/text-box/text-box.component.tsx @@ -14,7 +14,7 @@ import type { Sx } from '../../design-tokens'; export interface TextBoxProps extends Form.FormControlProps { required?: boolean; disabled?: boolean; - id?: string; + id: string; label: string; name?: string; defaultValue?: string; @@ -67,7 +67,9 @@ export const TextBox = ({ data-testid={rest['data-testid']} /> -