Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(ffe-form-react): unique names in example #2449

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Standard: Story = {
args: {
inline: false,
onColoredBg: false,
name: 'name',
name: 'favorittlukt',
label: 'Hva er din favorittlukt?',
},
render: function Render(args) {
Expand All @@ -42,7 +42,7 @@ export const Standard: Story = {
};

export const FieldMessage: Story = {
args: { ...Standard.args, fieldMessage: 'Feil lukt' },
args: { ...Standard.args, fieldMessage: 'Feil lukt', name: 'feil-lukt' },
render: function Render(args) {
return (
<RadioButtonInputGroup {...args}>
Expand All @@ -65,7 +65,7 @@ export const FieldMessage: Story = {
};

export const WithRadioSwitch: Story = {
args: { ...Standard.args },
args: { ...Standard.args, name: 'radio-switch' },
render: function Render(args) {
return (
<RadioButtonInputGroup {...args}>
Expand All @@ -84,7 +84,7 @@ export const WithRadioSwitch: Story = {
};

export const WithRadioBlock: Story = {
args: { ...Standard.args, selectedValue: 'yes' },
args: { ...Standard.args, selectedValue: 'yes', name: 'radio-block' },
render: function Render(args) {
return (
<RadioButtonInputGroup {...args}>
Expand Down
Loading