Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App styles not working after updating to version 2.0.4 #1115

Open
ChrisCraig68 opened this issue Sep 5, 2017 · 12 comments
Open

App styles not working after updating to version 2.0.4 #1115

ChrisCraig68 opened this issue Sep 5, 2017 · 12 comments

Comments

@ChrisCraig68
Copy link

Hi I have just updated from 0.3.47 to 2.0.4 but the styles within 'styleguide-app.css' are incomplete.

It is causing styleguide elements such as the design tool to have no styles attached. I have tried setting the 'includeDefaultStyles' to both true and false but no luck.
my styleguide

@junaidrsd
Copy link
Contributor

Hi @ChrisCraig68, It seems this is only happening to the clean build. I'll have a look when I get time. Thanks

@ChrisCraig68
Copy link
Author

Thanks @junaidrsd

@OliverJEvans
Copy link

OliverJEvans commented Sep 6, 2017

@ChrisCraig68 @junaidrsd I have the same issue, went from 2.0.1 to 2.0.4. Reverting back to 2.0.1 works for now.

@ChrisCraig68
Copy link
Author

@OliverJEvans Thanks that worked for me.

@damienwebdev
Copy link

I see the same thing. Not sure why this issue got closed, the bug still remains. I'd leave this open until this gets fixed by @junaidrsd 's pull request.

@junaidrsd junaidrsd reopened this Sep 6, 2017
junaidrsd pushed a commit that referenced this issue Sep 11, 2017
@mikezks
Copy link

mikezks commented Oct 5, 2017

@junaidrsd, could you please reopen this issue?
The problem as mentioned in the initial post still persists.
I tested version 2.1.0 (git clone) and 2.0.4 (git clone and npm package) and the styles still do not work.
Thanks!

@junaidrsd junaidrsd reopened this Oct 5, 2017
@junaidrsd
Copy link
Contributor

@mikezks I've tested once again with all possibilities and styles are working for me. Can you check by deleting output folder. It should work

@mikezks
Copy link

mikezks commented Oct 5, 2017

@junaidrsd, thanks for your reply.

It seems to be related to the npm version. In the environment I tried to setup the styleguide today a npm 3.x.x version is allowed only. This seems to be the reason for the wrong styles. I tested it on another PC right now (with npm 5.4.2) and - as you said - everything works fine. Sorry for this confusion, but at least it may be helpful for others as well.

The issue can of course be closed again.

@mikezks
Copy link

mikezks commented Oct 6, 2017

@junaidrsd, in contrast to what I wrote yesterday I do have the styles issue with npm 5.4.2 as well. It seems to be connected to the browser.

This bug does not occur in IE, edge, Firefox, but in Chrome only.
Could you please give me feedback whether you tested successfully with Chrome as well?

I tested with Chrome Version 61.0.3163.100 (Official Build) (64-bit) and Version 60.0.3112.90 (Official Build) (64-bit).

Steps to reproduce:

git clone http://github.com/SC5/sc5-styleguide.git
cd sc5-styleguide
npm install
npm run build
npm run demo

@mikezks
Copy link

mikezks commented Oct 6, 2017

I think I found a solution resp. workaround:

Chrome does not like this code block:

<script type="text/ng-template" id="userStyles.html">
  <style>
    @import url('{{{appRoot}}}/styleguide.css');
    @import url('{{{appRoot}}}/styleguide_pseudo_styles.css');
    @import url('{{{appRoot}}}/styleguide_helper_elements.css');
  </style>
</script>

But loading it with your addCssLink() function works.

@junaidrsd
Copy link
Contributor

Thanks @mikezks for reporting problems, unfortunately I'm occupied with other things. If you have found a solution just create a PR I'll merge it.

@kasparsd
Copy link
Contributor

@junaidrsd Here is a pull request that fixes the issue #1130.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants