OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add basic docs page for form-field
Benjamin Bädorf55b2f371c780
diff --git a/frontend/src/app/spot/components/form-field/stories/FormField.stories.mdx b/frontend/src/app/spot/components/form-field/stories/FormField.stories.mdxnew file mode 100644index 00000000000..d873430b69c--- /dev/null+++ b/frontend/src/app/spot/components/form-field/stories/FormField.stories.mdx@@ -0,0 +1,28 @@+import { moduleMetadata } from '@storybook/angular';+import { Canvas, Meta, Story, ArgsTable } from '@storybook/addon-docs';++import { OpSpotModule } from '../../../spot.module';+import { SpotFormFieldComponent } from '../form-field.component';++<Meta+ title="Patterns/Form Field"+ component={SpotFormFieldComponent}+ decorators={[+ moduleMetadata({+ imports: [+ OpSpotModule,+ ],+ }),+ ]}+ parameters={{+ design: {+ type: 'figma',+ url: 'https://www.figma.com/file/XhCsrvs6rePifqbBpKYRWD/Components-Library?node-id=1805%3A6650',+ },+ }}+/>+++# Form Field++<ArgsTable of={SpotFormFieldComponent} />diff --git a/frontend/src/stories/SelectorField.stories.mdx b/frontend/src/app/spot/components/selector-field/stories/SelectorField.stories.mdxsimilarity index 85%rename from frontend/src/stories/SelectorField.stories.mdxrename to frontend/src/app/spot/components/selector-field/stories/SelectorField.stories.mdxindex 4cb0809f1ab..3637c53178a 100644--- a/frontend/src/stories/SelectorField.stories.mdx+++ b/frontend/src/app/spot/components/selector-field/stories/SelectorField.stories.mdx@@ -1,10 +1,12 @@import { moduleMetadata } from '@storybook/angular';-import { Canvas, Meta, Story } from '@storybook/addon-docs';+import { Canvas, Meta, Story, ArgsTable } from '@storybook/addon-docs';-import { OpSpotModule } from '../app/spot/spot.module';+import { OpSpotModule } from '../../../spot.module';+import { SpotSelectorFieldComponent } from '../selector-field.component';<Metatitle="Patterns/Selector Field"+ component={SpotSelectorFieldComponent}decorators={[moduleMetadata({imports: [@@ -32,6 +34,8 @@ The selector field consists of either a checkbox or a radio button along with aCheckboxes offer the possibility to make multiple selections.Radio buttons require the user to choose only one from a list of options.+<ArgsTable of={SpotSelectorFieldComponent} />+## BehaviourThe selector field extends the clickable zone of the checkbox or radio button to the entire label. Clicking on the label is then the same as clicking on the control element itself.