-
Notifications
You must be signed in to change notification settings - Fork 7
Snackbar Specification
Silvia Ivanova edited this page Jan 20, 2022
·
9 revisions
Team Name: Design and Web Development (DnD)
Developer: Silvia Ivanova
Designer: Stefan Ivanov
- Simeon Simeonov | Date:
- Stefan Ivanov | Date:
- Product Owner: Radoslav Mirchev | Date:
- Radoslav Karaivanov | Date:
| Version | Users | Date | Notes |
|---|---|---|---|
| 1 | Silvia Ivanova | Date 20 January 2022 | Update specification |
The <igc-snackbar> component is used to provide feedback about an operation by showing a brief message at the bottom of the screen.
The <igc-snackbar> component should inform users about a performed action that is important or could be ‘undone’. It should not interrupt the user experience thus should be displayed temporarily and close without compulsory user action.
- The snackbar component should represent an update about a process that has been performed.
- The snackbar component should appear above all other screen elements.
- The snackbar component should be placed at the bottom of the screen.
- The snackbar component should contain only one line of text.
- The snackbar component should be able to display an action text.
- The snackbar component should disappear automatically (after 4 to 10 seconds).
- Only one snackbar can be visible at a time.
- The snackbar component should emit an event when it opens.
- The snackbar component should emit an event when it closes.
- The snackbar component should emit an event when an action is executed.
Developer stories:
- Story 1: As a developer, I want to be able to
- Story 2: As a developer, I want to be able to
End-user stories:
- Story 1: As an end-user, I want to be
- Story 2: As an end-user, I want to be
3.1. End-User Experience
3.2. Developer Experience
<igc-snackbar>
Snackbar Message
</igc-snackbar>3.3. API
You should be able to configure the igc-snackbar by setting its properties:
| Name | Description | Type | Default value | Reflected |
|---|---|---|---|---|
displayTime |
Sets the duration of time span in ms in which the snackbar will be visible. | number | 4000 | |
autoHide |
Sets whether the snackbar should close after the displayTime is over. |
boolean | true | |
actionText |
Sets the actionText attribute, which will be displayed in the action button. |
string | - |
The igc-snackbar should emit the following events:
| Name | Description | Type |
|---|---|---|
igcShow |
Emitted when the snackbar opens | - |
igcHide |
Emitted when the snackbar closes | - |
igcAction |
Emitted when the snackbar action is executed | - |
The igc-snackbar exposes the following methods:
| Name | Description | Arguments |
|---|---|---|
show |
Displays the snackbar. | - |
hide |
Closes the snackbar. | - |
| Name | Description |
|---|---|
| (default) | The snackbar content. |
| Name | Description |
|---|---|
| base | The base wrapper of the snackbar. |
| message | The snackbar message. |
| action | The snackbar action text (button). |
Automation
- Scenario 1:
- Scenario 2:
Roles: