I have browsed through various answers, but none of them seem to fully address my specific issue. For instance, this particular answer provides guidance on changing the background color of a snack-bar using CSS, which is helpful. However, attempting to adjust the width of the snack-bar yields no visible results.
Another solution I came across was titled: Overriding Default Style of SnackBar Component, unfortunately, it did not work as expected.
My questions now are:
How can I customize the appearance of a mat-snack-bar template using CSS? Specifically, can you demonstrate how to:
- Set the width to 100% when the screen is at full size,
- Ensure the snack-bar appears at the top of the page.
You can refer to this example in StackBlitz.
Thank you for your assistance.