Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 995dc49

Browse files
devversionThomasBurleson
authored andcommitted
fix(toast): apply theming correctly to custom toasts
* Custom configurations for `md-toast` didn't receive any theming, because the interimElement service was applying the theming on the the `md-template` element, which was accidentally used as our template root element. Fixes #8777. Closes #8799
1 parent 42833aa commit 995dc49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/toast/toast.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,9 @@ function MdToastProvider($$interimElementProvider) {
354354
}
355355
}
356356

357-
358-
return templateRoot.outerHTML;
357+
// We have to return the innerHTMl, because we do not want to have the `md-template` element to be
358+
// the root element of our interimElement.
359+
return templateRoot.innerHTML;
359360
}
360361

361362
return template || '';

0 commit comments

Comments
 (0)