components icon indicating copy to clipboard operation
components copied to clipboard

Angular material is not or improperly applied after changing route

Open localdevm opened this issue 7 years ago • 2 comments

What are you trying to do?

Apply material styling to my table

What troubleshooting steps have you tried?

  1. Been browsing SO for weeks trying to find a similar issue
  2. Downgraded & upgraded my @angular/material package

What are you seeing that does not match your expectations? When rerouting, all applied material styling is not how one would expect when you reroute back to the table

Before routing

Screenshot_2

After switching routes & coming back

Screenshot_3

Reproduction

Rerouting to any component after opening the table page

Environment

  • Angular: 7.2.14
  • CDK/Material: 7.3.7
  • Browser(s): Chrome, Firefox
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

localdevm avatar Jun 14 '19 17:06 localdevm

Any chance you can reproduce this is Stackblitz so we can look into it? It seems odd that the CSS is loaded into the browser but not being applied to the table. Can you confirm that the styling is not being overridden by other styles?

andrewseguin avatar Jun 28 '19 17:06 andrewseguin

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.