Skip to content

Commit

Permalink
fix: radio id on docs (#287)
Browse files Browse the repository at this point in the history
Co-authored-by: “BogdanDanilescu” <bogdan.danilescu@nearform.com>
  • Loading branch information
BogdanDanilescu and “BogdanDanilescu” authored Oct 15, 2024
1 parent 1067f5c commit 4356294
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/docs/content/3-components/2-library/32-radio-button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ import { standardProps, inlineProps, hintsProps } from "@/components/form/radio"
</div>
```
</TabPanel>
<TabPanel value="tab12">
<TabPanel value="tab22">
```html
{{ govieRadiosGroup({
"fieldId": "uniqueId",
Expand Down Expand Up @@ -272,7 +272,7 @@ import { standardProps, inlineProps, hintsProps } from "@/components/form/radio"
}) }}
```
</TabPanel>
<TabPanel value="tab13">
<TabPanel value="tab23">
```html
import { RadiosGroup } from '@govie-ds/react';

Expand Down
5 changes: 3 additions & 2 deletions apps/docs/src/components/form/radio.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const standardProps = {
fieldId: 'uniqueId',
fieldId: 'uniqueId-1',
title: {
value: 'Where do you live?',
asHeading: {
Expand All @@ -25,11 +25,12 @@ export const standardProps = {

export const inlineProps = {
...standardProps,
fieldId: 'uniqueId-2',
inline: true,
};

export const hintsProps = {
fieldId: 'uniqueId',
fieldId: 'uniqueId-3',
title: {
value: 'Have you changed your name?',
hint: 'This includes changing your last name or spelling your name differently.',
Expand Down

0 comments on commit 4356294

Please sign in to comment.