Replies: 1 comment 1 reply
-
Thanks @kptdobe for stating this thread! This is definitely some functionality that would be good to find a way to add to the library. Some quick thoughts below... PlacementThis looks like it's been updated since the last time I reviewed in depth. I think a Having it be an opt-in attribute so as to continue to power existing consumption, and any future work on the priority queue should prevent this from bothering any current usage. MultipleSpectrum specifically states NOT to show multiple Toasts, as you've liked above. You see we kind of hack that in the SWC docs site implementation of
InsertionIf we hand wave the queue management question, do we need something that held |
Beta Was this translation helpful? Give feedback.
-
(following up toast discussion in #2291)
The doc site has an
spAlert
implementation leveraging thesp-toast
component, visible for example on the button doc page (click the button to see the alert).As a consumer of the library, I initially thought the alert is part of the library but I could only find the toast component and I had to debug the doc code to realise
spAlert
is a doc site specific implementation. I would then need to re-implement my own version of it.from @Westbrook (#2291 (comment)):
A simple argument in favour of making the toast behave like an alert would be... continue to implement the spec: https://spectrum.adobe.com/page/toast/
Implementing the placement part would already be a first simple step with potentially no break changing.
The multiple toasts is a bigger change but implementing it would then close the alert discussion.
Beta Was this translation helpful? Give feedback.
All reactions