Skip to content

Component - Flash Message  #415

@HauwaAguillard

Description

@HauwaAguillard

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 x or - 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.

Metadata

Metadata

Labels

help wantedpinnedtickets that shouldnt be deleted until completed and this label is removedquestion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions