patternfly / patternfly-elements

PatternFly Elements. A set of community-created web components based on PatternFly design.
https://patternflyelements.org/
MIT License
379 stars 96 forks source link

[UPDATE] pfe-toast (alert variant?) #956

Open coreyvickery opened 4 years ago

coreyvickery commented 4 years ago

Alert - Toast

Usage

Inline style differences

ToastvsInline

Example

Toasts are not located inline, they float and stick to the upper right corner of a page or window above content and the grid to alert users of information or actions.

Screen Shot 2020-06-25 at 11 50 29 AM

Desktop

Toast - Desktop

Tablet, landscape

Toast - Tablet, landscape

Tablet, portrait

Toast - Tablet, portrait

Guidelines

Mobile, landscape

Toast - Mobile, landscape

Mobile, portrait

Toast - Mobile, portrait

Guidelines

Types

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/e0be63a2-893e-41eb-96b1-ba9bee4ede0d/Toast

Styles

Success

Toast - Success

Styles

Danger

Toast - Danger

Styles

Warning

Toast - Warning

Styles

Default

Toast - Default

Styles

Info

Toast - Info

Styles

Spacing

Toasts-Spacing

Spacing legend https://www.patternfly.org/v4/design-guidelines/styles/spacers

coreyvickery commented 4 years ago

Alert - Inline story is below.

https://github.com/patternfly/patternfly-elements/issues/215

starryeyez024 commented 4 years ago

@coreyvickery do toasts always have a color, and is the default blue? currently the toast has no color, so I just wanted to confirm. Thanks!

coreyvickery commented 4 years ago

@starryeyez024 Yes, Toast alerts always have a color bar at the top and the Default style can be used as the default.

castastrophe commented 3 years ago

@starryeyez024 Should we tackle this as a variant of pfe-toast or as a pfe-alert variant that displays using toast in the shadow DOM?

starryeyez024 commented 3 years ago

@castastrophe My 2 cents at a high-level is that we should make this a design option within pfe-toast, either by making the styles from pfe-alert a mixin, or by leveraging pfe-toast within the shadow dom 👍

Including the alert demo link here that @heyMP is working on: https://deploy-preview-1406--patternfly-elements.netlify.app/elements/pfe-alert/demo/