laboratoriobridge / bold

https://bold.bridge.ufsc.br
MIT License
75 stars 9 forks source link

[TOAST] Actionable notification #844

Closed juliapedrosaxx closed 2 months ago

juliapedrosaxx commented 4 months ago

Propose a new pattern ✨

A toast is a non-modal dialog that appears and disappears (overlaying) with the purpose of displaying information that requires minimal user interaction. Toasts can close automatically after 5 seconds, or they may require manual close action.

An actionable notification toast variant displays non-critical information and allows for interactive elements. It can be highly disruptive, differing from toast default, once the actionable notification is read by screenreader when it appears.

Visual

image image

Figma prototype.

Context

This pattern, which allows for interactive elements, should be used to display non-critical information in the user flow. Avoid using long messages since this component disappears automatically, which could make it difficult for users to read the entire message.

State

Badge: True/False

Accessibility

juliapedrosaxx commented 4 months ago

References: Magentaa, MUI and Carbon.

romulofer commented 3 months ago

QA

For reference, here is an example of implementation for this component:

Image

Image

larissadallagnol commented 3 months ago

QA

Currently, some component paddings are different from the prototype.

Title padding

How it is: 0px 16px 8px 16px How it should be: 0px 0px 4px 16px

Title image ![title](https://github.com/laboratoriobridge/bold/assets/110857802/deb67f6b-e318-47c1-b4bc-be72549e3928)

Message padding

How it is: 0px 16px 8px 16px How it should be: 0px 0px 8px 16px

Message image ![message](https://github.com/laboratoriobridge/bold/assets/110857802/391540ec-24df-42be-9e92-4f051354fb3a)