uiowa / uids

UI Design System
http://uids.brand.uiowa.edu
7 stars 1 forks source link

4.x - add alerts and new alert variants #770

Closed bspeare closed 1 year ago

bspeare commented 1 year ago

The current alerts only have one design option: https://uids.brand.uiowa.edu/components/detail/alert.html. In the 4.x branch, it would be ideal to have an alert/message component that has left and center variants that can be more flexible for use as:

Proposed solution

Move over the current alerts component from UIDS 3.x and create new variants/stories for the uses listed below.

<span class="fa-stack fa-1x"><span class="fas fa-circle fa-stack-2x"></span><span class="fa-link fas fa-stack-1x fa-inverse"></span></span>

Hawk Alert

Left aligned:

Screen Shot 2022-09-15 at 9 56 44 AM

Centered: TBD

Section message

Left aligned:

Screen Shot 2022-09-15 at 8 40 19 AM Screen Shot 2022-09-15 at 8 39 47 AM Screen Shot 2022-09-15 at 8 39 32 AM Screen Shot 2022-09-15 at 8 39 02 AM Screen Shot 2022-09-15 at 8 38 03 AM

Centered: TBD

Inline message

Left aligned:

Screen Shot 2022-09-14 at 3 37 50 PM Screen Shot 2022-09-15 at 8 48 08 AM Screen Shot 2022-09-15 at 8 47 24 AM

Centered: TBD

bspeare commented 1 year ago

The proposed solution on this suggests that we replace the alerts component from 3.x with the 4.x card component w/ specific alert stories.

cory-skeers commented 1 year ago

Grooming convo: limiting this slice to uids specifically, and will need a follow-up issue in uiowa/uiowa for implementing in uids_base.

pyrello commented 1 year ago

I disagree with the idea of using the card component for alerts. Here is why:

pyrello commented 10 months ago

I want to update and elaborate on my thinking in https://github.com/uiowa/uids/issues/770#issuecomment-1677800316:

I still think that adding card-like complexity to the the alerts to achieve a more card-like experience is not desirable. On the other hand, I'm coming around to the idea of being able to have cards that have a similar color-coded option along with the ability to fill an icon could be useful.