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 additional variants for button (#59)
* feat: add button bar module and a new variant for button - Add module button bar - Add variant to component button for multiple actions Closes #4 Co-authored-by: Franco Ehrat <[email protected]>
- Loading branch information
Showing
13 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,22 @@ | ||
## 1. Was macht das Modul? | ||
* Es bildet eine Leiste, wo alle Aktionen eines Anwendungsbereichs gesammelt werden. | ||
|
||
|
||
## 2. Wann soll das Modul eingesetzt werden? | ||
* Wenn in einem Anwendungsbereich mehrere Aktionen ausgeführt werden können. | ||
|
||
|
||
## 3. Regeln | ||
* Die Buttonbar sollte immer unten rechts von einem Container (z.B. Formular oder Dialog) platziert werden. | ||
* Die Buttons werden immer rechts innerhalb der Buttonbar platziert. | ||
* Die primäre Aktion wird links von den sekundären Aktionen platziert. | ||
* Es dürfen nicht mehr als drei [Buttons](https://digital.sbb.ch/de/webapps/components/button) platziert werden. Wenn mehr Aktionen notwendig sind, dann soll ein [Contextmenu](https://digital.sbb.ch/de/webapps/components/contextmenu) verwendet werden. Dieses wird rechts von den anderen Buttons platziert. | ||
|
||
|
||
## 4. Ausprägungen und Zustände | ||
|
||
### 4.1 Standard | ||
![Darstellung des Moduls Buttonleiste](https://raw.githubusercontent.com/sbb-design-systems/design-system-webapp-documentation/master/documentation/components/button/images/Buttonbar_Default.png 'class: image') | ||
|
||
#### Design Spezifikation | ||
* [Default](https://www.sketch.com/s/36ab4f9f-f7f8-436e-9d7e-0f2088e52e04/a/g0o89Jz#Inspector) |
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,22 @@ | ||
## 1. What does the module do? | ||
* It forms a bar where all actions of an application area are collected. | ||
|
||
|
||
## 2. When should the module be used? | ||
* When several actions can be performed in an application area. | ||
|
||
|
||
## 3. Rules | ||
* The button bar should always be placed at the bottom right of a container (e.g. form or dialog). | ||
* The buttons are always placed to the right within the button bar. | ||
* The primary action is placed to the left of the secondary actions. | ||
* No more than three [Buttons](https://digital.sbb.ch/en/webapps/components/button) may be placed. If more actions are necessary, then a [Contextmenu](https://digital.sbb.ch/en/webapps/components/contextmenu) should be used. This is placed to the right of the other buttons. | ||
|
||
|
||
## 4. Variants and statuses | ||
|
||
### 4.1 Default | ||
![Display of the module buttonbar](https://raw.githubusercontent.com/sbb-design-systems/design-system-webapp-documentation/master/documentation/components/button/images/Buttonbar_Default.png 'class: image') | ||
|
||
#### Design specification | ||
* [Default](https://www.sketch.com/s/36ab4f9f-f7f8-436e-9d7e-0f2088e52e04/a/g0o89Jz#Inspector) |
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.