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
Added docs re: section headers
Parimal Satyalf64a9aac8b0a
diff --git a/frontend/src/stories/SectionHeaders.stories.mdx b/frontend/src/stories/SectionHeaders.stories.mdxnew file mode 100644index 00000000000..b123be6822a--- /dev/null+++ b/frontend/src/stories/SectionHeaders.stories.mdx@@ -0,0 +1,48 @@+import { Meta, Story, Canvas } from '@storybook/addon-docs';+import { moduleMetadata } from '@storybook/angular';++# Section Headers++> Example: Section header example++The section header is used to separate different sections of a page or a view, or different grouping of similar functionality.++In the Files tab for example, the section header separates the Attachments section and the the different file storages that may be available to a work package.++## Structure and Options++Section headers are at their most basic form a label (in all-caps) with a line underneath.++> Example of a basic section header++However, they can be extended with a few additional features:++**Left icon**+This icon can be added to provide context. In a files list, for example, the left icon is used to indicate to which storage provider (for example, Nextcloud) that file storage is linked.++In some parts of the application, this icon is also used to indicate open/closed state when the section header functions as an accordian (see *Behaviour*).++*Note: Since this element is always all-caps, the baseline of the font requires the icon to be raised by a few pixels. See* Margins and Spacing *for more details.*++**Right icon**+The icon can be placed to the right of the text too, if required. This should be used sparingly.++**Action**+This is usually a button on the far edge (by default the right edge) of the component, but can also be a link. This is used to provide additional contextual action related to that whole section (to access the home directory in Nextcloud in a new tab, for example).++> Example of a section header with a left icon and an action (like a Nextcloud file storage)++**Right position**+The entire structure can be inverted, with the action buton on the left and the title and icons on the right. This should ideally never be used, but exists because such a format already exists in some places. Use sparingly.++## Behaviour++The section header behaves either as a regular header (static) or as an accordian, where clicking on the entire section header will expand and collapse the content underneath.++> Example: "Group by" accordian, like a cost report page++## Margins and Spacing++The headers have an 0.5 rem top and bottom margin.++