opened
shravnk
username_0
Adds a `containerRef` param to XH.toast which accepts a ref to a HoistComponent. `ToastSource` uses the ref to pull out the component's underlying DOM element and generate a unique id for the toaster. Importantly, this implementation requires a Blueprint CSS override (see App.scss in linked Toolbox branch):
```
  .bp3-toast-container {
    position: absolute;
  } 
```
@username_1 discussed this implementation, and considered whether it's safe to add the override as a Hoist default. 

For #1065. See https://github.com/exhi/toolbox/tree/anchorToasts for demo. 

<img width="1395" alt="Screen Shot 2019-05-07 at 1 18 54 PM" src="https://user-images.githubusercontent.com/33368494/57319545-c9089b80-70ca-11e9-9734-3a877d9bb85e.png">
Anchor toasts
issue
created
lbwexler
username_1
@username_2 -- Can you review this with Brendan?
comment
created
TomTirapani
username_2
Looked at this and discussed with Brendan. I brought the CSS positioning override into hoist, with the caveat that its only applied when the Toaster is anchored.

Looks great 👍
comment