Themes are not applied in IE?
Hi guys,
we are currently doing a SharePoint App where we use office ui fabric react as the primary front end. We wanted to use a different primary color than the default blue so I added the following lines to my script:
loadTheme({
palette: {
themePrimary: '#00adcc',
themeDarkAlt: '#00adcc',
}
});
This works well in chrome and everything that has the default blue color is changed. BUT when I use IE 11 to view my app, then components such as CommandBarButton and the select-checkbox of DetailsList aren't displayed in my custom color, even though their class names clearly state themePrimary.
SharePoint uses document mode 10 and I think it has something to do with this. Because if I set it to 11, then the colors are displayed correctly. But various other things won't work, I get lots of errors like "Object doesn't support property or method 'attachEvent'". Link: https://social.technet.microsoft.com/wiki/contents/articles/24276.sharepoint-2013-troubleshooting-object-doesn-t-support-property-or-method-addeventlistener-or-getattribute.aspx
Any ideas?

I also read in the documentation that IE 10 isn't supported but that would mean that it's nearly impossible to use office ui fabric react with SharePoint because the latter won't run properly if document mode is set to 11. I think I am missing something here....
I am finding the same thing using office-ui-fabric-react in a content editor web part in SharePoint 2013 on-prem. Theming works fine in Chrome but not IE11 because of the explicit document mode.
Apart from that there are issues with SharePoint's CSS (e.g. min-width on buttons) knocking things out but I'm able to sort that by adding rules in myself. Can't see at the moment how to fix the theming though.
Can someone working on the library please clarify what the situation is?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!
@manishgarg1 - do you have any suggestion here about the documentMode 10 on SharePoint?
I'm going to close this, as Fabric does not support IE 10 doc mode. SharePoint modern pages require IE11 minbar. Classic pages aren't meant to host Fabric (amongst other modern libraries which set the minbar at ie11.)