@vectoriox/iox-builder 11.15.0 → 11.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10125,10 +10125,13 @@ class BuilderComponent {
|
|
|
10125
10125
|
}
|
|
10126
10126
|
if (toast !== this.shownToast) {
|
|
10127
10127
|
const page = root.querySelector('iox-page-component.iox-token-scope') ?? root;
|
|
10128
|
+
// The held toast wears the look when the page does (a node wearing the design system's marker) — the same
|
|
10129
|
+
// rule a toast raised by an element follows (it asks the element it came from).
|
|
10130
|
+
const from = page.querySelector('.iox-es') ?? null;
|
|
10128
10131
|
if (this.shownToast !== null && toast === null)
|
|
10129
10132
|
showToastDesign(root.ownerDocument, '', false, { topLayer: false, container: page });
|
|
10130
10133
|
if (toast !== null)
|
|
10131
|
-
showToastDesign(root.ownerDocument, toast, true, { topLayer: false, container: page });
|
|
10134
|
+
showToastDesign(root.ownerDocument, toast, true, { topLayer: false, container: page, from });
|
|
10132
10135
|
this.shownToast = toast;
|
|
10133
10136
|
}
|
|
10134
10137
|
}
|