-
Notifications
You must be signed in to change notification settings - Fork 65
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1676 +/- ##
==========================================
+ Coverage 99.98% 99.98% +<.01%
==========================================
Files 395 406 +11
Lines 8145 8354 +209
Branches 1198 1223 +25
==========================================
+ Hits 8144 8353 +209
Misses 1 1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't looked through all the code yet, but saw a couple things I wanted to bring up. I left a few inline comments and have included some generic ones below.
- There's a hover style on the toasts that I don't see in SKY UX 1. If it is intentional, it seemed blurry.
- SKY UX 1 version has an opening and closing animation, whereas I only saw a close animation on this version.
- If you have more toasts open than the height of the viewport, there's no way to get to them. This behavior exists in SKY UX 1 version and is definitely an edge-case, but thought I should still mention it.
- Is there any value in exposing the SkyToastType as an enum, so you can do something like
SkyToastType.info
? - It's not entirely clear what the relationship is between
toast
andtoaster
components.
-khtml-user-select: none; /* Konqueror HTML */ | ||
-moz-user-select: none; /* Firefox */ | ||
-ms-user-select: none; /* Internet Explorer/Edge */ | ||
user-select: none; /* Chrom and Opera */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chrome is misspelled.
padding-bottom: $sky-margin-double; | ||
padding-right: $sky-margin-double; | ||
max-width: 300px; | ||
-webkit-touch-callout: none; /* iOS Safari */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we wouldn't want users to be able to select text inside a toast?
@Blackbaud-BobbyEarl In response to your comments (and for posterity):
|
@Blackbaud-BobbyEarl I added an "emerge" animation, as described here: https://developer.blackbaud.com/skyux/design/styles/motion. Also, I added an overflow style to the toaster component to handle a large number of toasts. |
Original contribution: #1614
Addresses: #163
The following changes were made:
SkyToastComponent
to theSkyToasterComponent
. This was done to make the Toast component behave more like a "normal" component, with inputs, outputs, and transcluded content. The toaster handles both custom and default component injection for the toast's inner content (meaning, the toast component itself now only needs to worry about its core features).openTemplatedMessage
toopenComponent
, since the word "template" has special meaning in Angular, and to further separate the usage ofmessage
from theopenMessage
method (both methods still operate in the same manner as they did before).SkyToast
which holds the configuration aspects of each toast, and slightly modifiedSkyToastInstance
to be the publicly consumable "interface" returned from the service methods. (Most of what used to be inSkyToastInstance
was moved toSkyToast
.) This will allow us to wrap internal-only utilities inSkyToast
(for the Toaster component), and only provide what we want the consumer to see inSkyToastInstance
.