A full migration of gux-simple-toast
upgrades the design to the latest UX standards and allows for easier design changes through css tokens
<gux-simple-toast accent="positive" aria-live="polite">
<gux-icon slot="icon" icon-name="user-add" decorative></gux-icon>
<div slot="message">This is the message</div>
</gux-simple-toast>
Steps:
- Replace the
gux-simple-toast
tag withgux-simple-toast-legacy
tag
- <gux-simple-toast accent="positive" aria-live="polite">
+ <gux-simple-toast-legacy accent="positive" aria-live="polite">
...
- </gux-simple-toast>
+ </gux-simple-toast-legacy>
Completed V3 Basic Migration:
<gux-simple-toast-legacy accent="positive" aria-live="polite">
<gux-icon slot="icon" icon-name="user-add" decorative></gux-icon>
<div slot="message">This is the message</div>
</gux-simple-toast-legacy>
Steps:
- Replace the
gux-simple-toast
tag name withgux-toast
- Replace the
accent
property totoast-type
and set it to one of the corresponding typespositive
->success
warning
(same)alert
->error
neutral
->info
- <gux-simple-toast accent="positive" aria-live="polite">
+ <gux-toast toast-type="success" aria-live="polite">
...
- </gux-simple-toast>
+ </gux-toast>
- Remove
icon
named slot
Completed V4 Full Migration to gux-toast
:
<gux-toast toast-type="success" aria-live="polite">
<div slot="message">This is an example message</div>
<a slot="link" href="#">Optional Link</a>
</gux-toast>
- gux-toast
- properties
- toast-type
- events
- guxdismiss
- properties
Note: link
named slot is optional
Note: aria-live
property is required for accessibility
Note: toast-type
default value is success