Skip to content

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

Minor

Parimal Satyal651268cac5d7
diff --git a/frontend/src/stories/Datepicker-Basic.stories.mdx b/frontend/src/stories/Datepicker-Basic.stories.mdx
index 04d89bc08b4..207e5219e2d 100644
--- a/frontend/src/stories/Datepicker-Basic.stories.mdx
+++ b/frontend/src/stories/Datepicker-Basic.stories.mdx
@@ -7,17 +7,24 @@ Basic date pickers are attached to existing date input fields and is displayed a
Unlike the Work package and Modal variants, the basic date picker does not trap focus and as such does not allow for any keyboard navigation.
+> **Example**: An example of a basic date picker (with input field)
+
## Sub-variants
The structure is very basic and consists only of one mini calendar. There are two sub-variants:
-- *Range:* allows inputing a range (2023-02-09 - 2023-02-14)
-- *Single*: allows picking just one date (2023-02-09)
-
### Single
+**Range:** allows inputing a range (2023-02-09 - 2023-02-14)
+
+> **Example**: An example of a basic range date picker (with date pre-filled in the attached date input field)
+
### Range
+**Single** allows picking just one date (2023-02-09)
+
+> **Example**: An example of a basic range date picker (with date pre-filled in the attached date input field)
+
## Mobile
The basic date picker does not have a mobile version. On mobile devices, Flatpickr will automatically gracefully degrade to the device's native date picker.
diff --git a/frontend/src/stories/Datepicker-Modal.stories.mdx b/frontend/src/stories/Datepicker-Modal.stories.mdx
index cfbba8405a1..0d5bffd3cb7 100644
--- a/frontend/src/stories/Datepicker-Modal.stories.mdx
+++ b/frontend/src/stories/Datepicker-Modal.stories.mdx
@@ -21,11 +21,14 @@ The modal date picker does not have a range variant.
## Mobile
+> **Example**: Mobile version of modal date picker
+
The **mobile** version is exactly the same except:
- The date picker, like all modals, is displayed full screen with a translucent grey background.
- The action bar has only action (*Save*); the cancel button is hidden, and is replaced with a close floating close button *outside* at the bottom (centred), as is common to all modals in mobile
+
## Margins and spacing
1 rem between horizontal groupsets