-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
help wantedpinnedtickets that shouldnt be deleted until completed and this label is removedtickets that shouldnt be deleted until completed and this label is removedquestion
Description
I'm submitting a ...
- bug report
- feature request
- support request
What is the current behavior?
Currently, flash message persist on screen until page is refreshed.
What is the expected behavior?
Scenario 1: Dismissible Flash message
- Given a prop has been created to apply to the component for it to be dismissible
- And the dismissible prop has been added to a flash message
- Then the flash message includes a close button
- and can be dismissed by the user
Scenario 2: Dismissible + Timer based Flash message
- Given a prop has been created to apply to the component for it to be dismissible + Timer based
- And the dismissible & Timer based prop has been added to a flash message
- Then the flash message includes a close button
- and can be dismissed by the user
- and can dismiss after timer runs out
Scenario 3: Persistent Flash message
- Given a prop has been created to apply to the component for it to be persistent
- And the persistent prop has been added to a flash message
- Then the flash message does not include a close button
- and can only be dismissed when user resolves warning/alert?
Notes from pairing with @blazebarsamian and @CheetoMao
Some Requirements:
Flash messages should be:
- Position: Relative
- Placed inside content and not in navigation
- Default flash message should
Types:
Success
Warning
Informational
Alert
States:
Persistent - e.g forms - flash message doesn't go away until problem is fixed
Timer + User based - fades away, and also allows users to dismiss
User based - flash message only goes away when user dismisses
Note: Flash messages would need some animation(ease in/out)
Note on Icons for the close button:
- Harmonium doesnt have icons working so well need to use
xor-for the close button for now. - HOWEVER, we should make it so that users could easily plug in different icons to be used as the close button (most likely using the icon component)
Check with @prehnRA for Harmonium status before implementation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedpinnedtickets that shouldnt be deleted until completed and this label is removedtickets that shouldnt be deleted until completed and this label is removedquestion