Skip to content

Commit

Permalink
Fix theme imports for vanilla js (#1742)
Browse files Browse the repository at this point in the history
* Fix theme imports in `app.js`

* Add note for theme in migrate
  • Loading branch information
mkszepp authored Mar 13, 2024
1 parent 48a1781 commit 9fadadc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion docs/app/templates/public-pages/docs/migrate-7-0-to-8-0.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
<p>Helper: The helper <code>ember-power-select-is-selected</code> was renamed to <code>ember-power-select-is-equal</code>. If you have used in your custom components, you need to replace it</p>
</li>
<li>
<p>Vanilla JS: If you have used vanilla js you must now import the css in <code>app.js</code> manually like (for other css adding examples see under installation)</p>
<p>
Vanilla JS: If you have used vanilla js you must now import the css in <code>app.js</code> manually like (for other css adding examples see under installation)
<br>
If you have used a theme you need to import like described in section <a href="https://ember-power-select.com/cookbook/bootstrap-theme">bootstrap</a> / <a href="https://ember-power-select.com/cookbook/material-theme">material</a>
</p>
<CodeBlock @language="js" @code="import 'ember-power-select/styles';" />
</li>
<li>
Expand Down
1 change: 0 additions & 1 deletion ember-power-select/src/themes/bootstrap.js

This file was deleted.

1 change: 0 additions & 1 deletion ember-power-select/src/themes/material.js

This file was deleted.

1 change: 1 addition & 0 deletions ember-power-select/themes/bootstrap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '../vendor/ember-power-select-bootstrap.css';
1 change: 1 addition & 0 deletions ember-power-select/themes/material.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '../vendor/ember-power-select-material.css';

0 comments on commit 9fadadc

Please sign in to comment.