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

Update to the docs

Parimal Satyal1f68d176c3d6
diff --git a/lookbook/docs/components/border-box-table.md.erb b/lookbook/docs/components/border-box-table.md.erb
index 72a53164520..16ed52ee1af 100644
--- a/lookbook/docs/components/border-box-table.md.erb
+++ b/lookbook/docs/components/border-box-table.md.erb
@@ -4,19 +4,21 @@
## Anatomy
-**Note:** The BorderBoxTable is based on the `Primer::Beta::BorderBox` with a CSS grid applied inside to align the individual rows and make it look like a table. Please note, that it is technically not a table and has therefore none of the benefits a normal HTML table would have (e.g automatic column width adjustments or accessibility short cuts). If you want or need that, please use the [TableComponent docs](./tables))
+**Note:** The BorderBoxTable is based on the `Primer::Beta::BorderBox` with a CSS grid applied inside to align the individual rows and make it look like a table. Please note, that it is technically not a table and has therefore none of the benefits a normal HTML table would have (e.g automatic column width adjustments or accessibility short cuts).
+
+If you want or need that, please use the [TableComponent docs](./tables))
## Best practices
**Do**
-- Use a BorderBoxTable if you have a *few* entries of unsorted data, that does not require pagination
+- Use a BorderBoxTable if you have a *few* entries of unsorted data that does not require pagination
- Use up to two actions using the `:secondary` scheme of `Primer::Beta::Button` and `Primer::Beta::IconButton`.
- OR: Use an action menu with `:invisible` scheme
**Don't**
-- Use the BorderBoxTable for a lot of items that require sorting or pagination
+- Don't use the BorderBoxTable when the table consists of a large number of items that require sorting or pagination
## Technical notes
diff --git a/lookbook/docs/components/border-box.md.erb b/lookbook/docs/components/border-box.md.erb
index eff5dc17faa..ebac0d79411 100644
--- a/lookbook/docs/components/border-box.md.erb
+++ b/lookbook/docs/components/border-box.md.erb
@@ -1,15 +1,11 @@
The Border Box element is used to display structured items in a list, each with a set of actions. It is used for example:
-- to display a list of meetings
-- to display individual meeting agenda items in a meeting
-- to display the a list of project attributes
-- to display a list of configured OAuth applications
## Anatomy
The Border Box element is made up of
-1. The **header** acts as a container for the items below it. It's often to distinguish between sections. It is optional.
+1. The **header**, which acts as a container for the items below and helps distinguish between sections. It is optional.
2. Individual **items** below can vary in what information they show.
If a page uses a Border Box with a header, all sections must use headers.
@@ -19,18 +15,33 @@ If a page uses a Border Box with a header, all sections must use headers.
Note for Parimal:
You can chose between a collapsibleHeader and a free-chosen Header. The collapsible Header consists of Title, counter(optional) and description(optional).
-- **Collapsible header**: A collapsible header has an arrow next to the title and allows collapsing and expanding the contents below. When collapsed, the bottom border is slightly thicker to indicate something is hidden.
- - **Header description**: When collapsed, the optional header description is hidden.
- - **Header counter**: The counter can display the number of items that that particular section contains.
+The header can either be static or collapsible.
+
+The collapsibleHeader brings additional functionality:
+
+- an **arrow indicator** next to the title indicates if the section is collapsed or expanded.
+- a **header description** (optional) to give additional context to the content of that section. Hidden when collapsed.
+- a **counter** (optional) displays the number of items that that particular section contains.
+
+When collapsed, the bottom border is slightly thicker to indicate something is hidden.
+
+Both the collapsible header and static heads can accept additional actions. For example, a **more button** can offer additional contextual actions such as edit, delete and move (move up, move to top, move down, move to the end).
+
+## Uses
+
+- to display a list of meetings
+- to display individual meeting agenda items in a meeting
+- to display the a list of project attributes
+- to display a list of configured OAuth applications
-- **More button**: A more button can have contextual actions such as edit, delete and move (move up, move to top, move down, move to the end).
+If the content needs to be more structured (with columns and column headers), please use the [Border Box Table](border-box-table) component instead.
## Best practices
**Do**
- Use sections (with headers) to better organise content if they have logical categories (eg. Open and Planned meetings).
-- - **Draggable**: Both header and items can have drag handles. Individual items can be dragged up and down and into other sections. The sections themselves can also be moved up and down.
+- Do make the header and items draggable if the user should be able to drag individual items up and down and into other sections. The sections themselves can also be dragged up and down to change order.
**Don't**