From ef0b84be38a98d1bb1c6a3b021efdd87b3baa6df Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Thu, 9 Aug 2018 10:11:33 -0700 Subject: [PATCH] fix(snackbar): wrap simple snackbar text in span (#12599) We have begun transforming our html templates in our internal syncs to include our license header which results in a new line above template. In the simple snack bar this adds a single space when looking at the elements textContent. By wrapping the content in a span we ensure that the whitespace is consistent regardless of the presence of the license header comment in the template file. --- src/lib/snack-bar/simple-snack-bar.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/snack-bar/simple-snack-bar.html b/src/lib/snack-bar/simple-snack-bar.html index 82a3f551284..a581b91d6dd 100644 --- a/src/lib/snack-bar/simple-snack-bar.html +++ b/src/lib/snack-bar/simple-snack-bar.html @@ -1,5 +1,4 @@ -{{data.message}} - +{{data.message}}