vwc-snackbar / vwc-snackbar-list #737
-
|
Attribute | Property | Type | Default | Description |
---|---|---|---|---|
connotation |
connotation |
string |
'' |
defines the connotation of the message, visually presented but some attributive color |
location |
location |
string |
top center |
defines preferred location of snackbar, may consist of any white space separated tokens from top /bottom and far /near /center in any order |
timeout |
timeout |
number |
4000 |
number of milliseconds, before the snackbar will auto disappear (if not dismissed beforehand) |
snackbars list - requirements and functional spec - P1
When several snackbars are shown at the same time they should be managed.
Most acceptable way (and this is what Volta allows) is to create 'stacking' effect (NOT to be confused with 'stacking' keyword of MWC, which means something absolutely different).
As of now this functionality is somewhat questionable and therefore I'd like to postpone it to P1.
We do like to gather info from LOBs of such a usages if any, so if anyone know about usage of multiple stacked snackbars in some LOB, please update the list below:
- AI
- Meetings
- Messaging
- Nexmo Customer Dashboard
- VCC
As of implementation - there are few ideas that I had in mind, nothing settled as of now:
- dedicated component
vwc-snackbar-list
that manages the snackbars appended to it - MY CURRENT FAVORITE - JS service, that exposes APIs to add snackbars and manages them (cons: somewhat shifted API experience, inability to skip JS)
- snackbar self inner logic that knows to detect sibling snackbars and adjust self accordingly (cons: concern separation not looks good here)
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
unless set to
before moving on, It feels our design deviate from the original snackbar recommendation and enforces bad practice in favor of parity. if yielding the title & icon we can steer back to stacked snackbar |
Beta Was this translation helpful? Give feedback.
-
Just wanted to let you know, our snackbar in the studio contain volta callout and some custom design we did, |
Beta Was this translation helpful? Give feedback.
-
Everybody here - please pay attention that the snackbar design discussion / review is moving to the actual PR here. Please see the preview of the PR here and review the |
Beta Was this translation helpful? Give feedback.
-
The initial implementation of the |
Beta Was this translation helpful? Give feedback.
The initial implementation of the
vwc-snackbar
is available in an alpha state. See relevant repo package and StoryBook entry for more details.