Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ should change the heading of the (upcoming) version to include a major version b
## @rjsf/shadcn

- Updated the building of `shadcn` to use the `lodashReplacer` with `tsc-alias` fixing [#4678](https://github.com/rjsf-team/react-jsonschema-form/issues/4678)
- Radio widget labels are now accessible and can be clicked on to select the associated option.

## @rjsf/utils

Expand Down
2 changes: 1 addition & 1 deletion packages/shadcn/src/RadioWidget/RadioWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSc
id={optionId(id, index)}
disabled={itemDisabled}
/>
<Label className='leading-tight'>{option.label}</Label>
<Label className='leading-tight' htmlFor={optionId(id, index)}>{option.label}</Label>
</div>
);
})}
Expand Down
Loading