Closed gustavookamoto closed 4 years ago
Hello @gustavookamoto , could you provide more details, in which framework are you working on? I tried to reproduce in simple HTML script import, and also in angular, and it works fine.
Do you receive any error message on the console window?
Hello, I'm using angular 9 and it's not displaying any error messages. I just uninstalled the old versions and installed using npm.
Now I got the same error when trying in Angular 9. It seems like the styling from the theme is not rendered in a correct manner. Could be a problem with loading order or the way the view is rendered has changed in Angular 9 causing issues with CSS adopted stylesheet technique that we have in CUI. 🤔 @mmexvr
Did some test and apparently it's an initiation problem. The line below shows the value of style
is null sometimes.
https://github.com/scania/corporate-ui/blob/984267950f5dcc799ae7bf39cf904049f0f3501b/src/helpers/themeStyle.ts#L12
I'm trying to use the new pre-release versions for corporate-ui and scania-theme installing via NPM, but when I execute the project, the component isn't building properly. I've tried to install in many different ways, but it's not working.
To Reproduce
uninstal the current version from your project and install both packages (corporate-ui 4.1.2-1 / scania-theme 1.1.3-1) via npm.