ember-cli-styles-reloader icon indicating copy to clipboard operation
ember-cli-styles-reloader copied to clipboard

ember-component-css incompatibility

Open buschtoens opened this issue 9 years ago • 3 comments

As brought up here: https://github.com/xomaczar/ember-cli-styles-reloader/issues/1#issuecomment-120557588

buschtoens avatar Jul 11 '15 00:07 buschtoens

Working on a PR for you.

buschtoens avatar Jul 11 '15 00:07 buschtoens

There's a problem. ember-component-css genereates a stylesheet like this:

.application--nav-bar-ecf9bbbf .wrapper {
  max-width: 400px;
  margin: 0 auto; }

Unfortunately, the class name suffix up there is absolutely random and changes with every edit. Therefore it also needs to change in the document. This is clearly out of scope for this project, I'd say.

I'll open an issue over at ember-component-css.

buschtoens avatar Jul 11 '15 01:07 buschtoens

I made a PR that fixes this behavior by caching the suffixes: https://github.com/ebryn/ember-component-css/pull/76

If it gets accepted, you could merge #9 as well. :)

buschtoens avatar Jul 11 '15 01:07 buschtoens