This repository has been archived by the owner on Jun 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add tree component - add documentation in german and english translation - add images - add variant for select component including a tree Closes #1 Co-authored-by: Franco Ehrat <[email protected]>
- Loading branch information
Showing
16 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
Binary file modified
BIN
+17.3 KB
(250%)
documentation/components/select/images/Select_Grouped_Single.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## 1. What does the component do? | ||
* Displays hierarchically structured data in a tree structure. | ||
|
||
|
||
## 2. When should the component be used? | ||
* To display and select elements in a hierarchical structure. | ||
|
||
|
||
## 3. rules | ||
* When using a tree as a navigation element, it makes sense not to use too many hierarchy levels (recommendation max. 3). | ||
* When using an tree to display data structures (e.g. a dossier, analogous to a file browser), it depends on the application how many hierarchy levels are needed. | ||
* The icon as a supplement to the text is optional. | ||
|
||
|
||
## 4. Variants and statuses | ||
The component has the following statuses: | ||
* Collapsed | ||
* Expanded | ||
* Default | ||
* Hover | ||
* Selected | ||
|
||
### 4.1 Standard | ||
![Example image of the tree component in the standard variant](https://raw.githubusercontent.com/sbb-design-systems/design-system-webapp-documentation/master/documentation/components/tree/images/Tree_Default.png 'class: image') | ||
|
||
#### Design specification | ||
* [Parent Collapsed](https://www.sketch.com/s/58b25e4c-bf9c-4f74-973f-503538fcbea2/a/dK9rg3#Inspector) | ||
* [Parent Expanded](https://www.sketch.com/s/58b25e4c-bf9c-4f74-973f-503538fcbea2/a/zAm8y4#Inspector) | ||
* [Leaf Default](https://www.sketch.com/s/58b25e4c-bf9c-4f74-973f-503538fcbea2/a/e20W2p#Inspector) | ||
* [Leaf Hover](https://www.sketch.com/s/58b25e4c-bf9c-4f74-973f-503538fcbea2/a/v81Q8O4#Inspector) | ||
* [Leaf Selected](https://www.sketch.com/s/58b25e4c-bf9c-4f74-973f-503538fcbea2/a/4aE5aeD#Inspector) | ||
|
||
### 4.2 Selectable | ||
![Exmpale image of the tree component in the selectable variant](https://raw.githubusercontent.com/sbb-design-systems/design-system-webapp-documentation/master/documentation/components/tree/images/Tree_Selectable.png 'class: image') | ||
|
||
#### Design specification | ||
* [Parent Collapsed](https://www.sketch.com/s/58b25e4c-bf9c-4f74-973f-503538fcbea2/a/YGjEkWO#Inspector) | ||
* [Parent Expanded](https://www.sketch.com/s/58b25e4c-bf9c-4f74-973f-503538fcbea2/a/KvEMzK1#Inspector) | ||
* [Leaf Default](https://www.sketch.com/s/58b25e4c-bf9c-4f74-973f-503538fcbea2/a/wLwbnym#Inspector) | ||
* [Leaf Hover](https://www.sketch.com/s/58b25e4c-bf9c-4f74-973f-503538fcbea2/a/eKbdKwP#Inspector) | ||
* [Leaf Selected](https://www.sketch.com/s/58b25e4c-bf9c-4f74-973f-503538fcbea2/a/GmzdmkO#Inspector) | ||
|
||
## 5. Example application | ||
![Image of an example of a tree](https://raw.githubusercontent.com/sbb-design-systems/design-system-webapp-documentation/master/documentation/components/tree/images/Tree_Showcase.png 'class: image') |