Import stylesheet removes some grafana styling

Hi all,

I’m trying to develop a panel plugin and I’m importing a custom stylesheet into module.ts. When I start up grafana via docker (v7.5.3), all the styling looks fine but as soon as I load my plugin through configuration > plugins > my-plugin or adding my-plugin to my dashboard, some grafana styling gets removed.

From what I can tell, it looks like styling that is added through emotion gets removed from the elements but the <style data-emotion="css"></style> still shows up in <head/>. For example, on the create dashboard page, there’s a button “New Dashboard” on the top left. Once I try adding in my panel, certain styling gets removed from the “New Dashboard” button and it ends up looking completely different.


Any insight into why this is happening would be much appreciated!