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 for Breadcrumbs
Parimal Satyale9b8d365fd89
diff --git a/frontend/src/stories/Breadcrumbs.stories.mdx b/frontend/src/stories/Breadcrumbs.stories.mdxnew file mode 100644index 00000000000..8374f453926--- /dev/null+++ b/frontend/src/stories/Breadcrumbs.stories.mdx@@ -0,0 +1,61 @@+import { Meta, Story, Canvas } from '@storybook/addon-docs';++<Meta title="Patterns/Breadcrumbs" />++# Breadcrumbs++> Example: A 3-level breadcrumb, root with icon++Breadcrumbs provide important semantic context to information being presented on the screen by allowing users to identify where they are in a hierarchical structural.++Breadcrumbs allow users to:++- identify their current location (in a folder structure or hierarchy of work packages)+- navigate up to the parent(s)++## Structure and Options++Breadcrumbs consist of a series of "levels" presented horizontally, separated by a right arrow (▶). Each level is a child of the level preceding it, except the first level, which is the root.++> Example: A 4-level breadcrumb, root with icon++## Behaviour++The last level is always the current level; this is never clickable. All other levels (the parents) are links, and clicking on them will take users to that level.++Because the length of the breadcrumb can vary significantly (depending on the title of each level and the available space), it can condense to fit the available space:++- The breadcrumb can show four (4) levels in full, space permitting, before going to "collapsed" mode.+- If the available space in the parent container does afford sufficient width to display the four levels in full, their names are truncated with ellipses ("Root ▶ First level ▶ Second le... ▶ Third le... ▶ Fourth level").+ - *The middle levels (excluding first and last) are truncated first. (??)*+ - *If space is still tight, root and current level are also truncated. (??)*++> *Example: A 5-level breadcrumb, collapsed*++There are special rules on mobile:++- The root level shows only an icon (no text)+- The direct parent (...) is displays as non-shrinkable ellipses that are clickable+- Further parents (between the direct parent and the root) are not displayed+- The current level maybe be truncated with ellipses ("Icon ▶ ... ▶Current le...) if needed.++> Example: A 4-level breadcrumb, mobile++## Options++Each level can consist of:++- an icon+- a text++The icon is almost always only used for the first item, although the component does allow it to be present at any level.++The text for each level is always a link, except for:++- root level+- collapsed levels between the direct parent and root in collapsed mode++## Margins and Spacing+++The breadcrumb component does not inherently have margins or padding. There is a 0.25 rem spacing between each level and a right arrow (that is, 0.25 to the left and right of every right arrow).\ No newline at end of file