Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Sep 2, 2024
1 parent 438b16b commit bef1adf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### Bug Fixes (from 11.0.0)
* Fix choice disable state wasn't considered when showing the "no choices to choose from" notice
* Fix regression "no choices to choose from" notice not triggering when no selectable choices exist for select-one. [#1185](https://github.com/Choices-js/Choices/issues/1185)
* Fix regression where webpack doesn't permit importing scss/css @tagliala (#1193)

### Chore
* Add e2e tests for "no choices" behavior to match v10
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,20 @@ Or include Choices directly:
<script src="/public/assets/scripts/choices.min.js"></script>
```

### CSS/SCSS

The use of `import` of css/scss is supported from webpack.

In .scss:
```scss
@import "choices.js/src/styles/choices";
```

In .js/.ts:
```javascript
import "choices.js/public/assets/styles/choices.css";
```

## Setup

**Note:** If you pass a selector which targets multiple elements, the first matching element will be used. Versions prior to 8.x.x would return multiple Choices instances.
Expand Down

0 comments on commit bef1adf

Please sign in to comment.