Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 592d082

Browse files
authored
Merge pull request #2 from apalfrey/develop
Bugfixes for 1.0.1
2 parents 78e6c01 + fdcb099 commit 592d082

8 files changed

Lines changed: 17 additions & 16 deletions

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Dependencies](https://img.shields.io/david/apalfrey/select2-bootstrap-5-theme?style=for-the-badge)](https://david-dm.org/apalfrey/select2-bootstrap-5-theme)
66

77
[Select2](https://github.com/select2/select2) v4 theme for Bootstrap 5, inspired by [select2-bootstrap4-theme](https://github.com/ttskch/select2-bootstrap4-theme)
8+
**Currently only works for Select2 v4.1.0**
89

910
## Examples
1011
https://apalfrey.github.io/select2-bootstrap-5-theme/
@@ -14,8 +15,8 @@ https://apalfrey.github.io/select2-bootstrap-5-theme/
1415
### CDN
1516

1617
```html
17-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" />
18-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.0.0/dist/select2-bootstrap-5-theme.min.css" />
18+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" />
19+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.0.1/dist/select2-bootstrap-5-theme.min.css" />
1920
```
2021

2122
### Package Managers

dist/select2-bootstrap-5-theme.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Select2 v4 Bootstrap 5 theme v1.0.0
2+
* Select2 v4 Bootstrap 5 theme v1.0.1
33
*/
44
.select2-container--bootstrap-5 {
55
display: block;
@@ -195,6 +195,7 @@
195195
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
196196
display: flex;
197197
flex-direction: row;
198+
flex-wrap: wrap;
198199
margin: 0;
199200
list-style: none;
200201
}

dist/select2-bootstrap-5-theme.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/select2-bootstrap-5-theme.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Select2 v4 Bootstrap 5 theme v1.0.0
2+
* Select2 v4 Bootstrap 5 theme v1.0.1
33
*/
44
.select2-container--bootstrap-5 {
55
display: block;
@@ -195,6 +195,7 @@
195195
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
196196
display: flex;
197197
flex-direction: row;
198+
flex-wrap: wrap;
198199
margin: 0;
199200
list-style: none;
200201
}

gulpfile.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ const compile = ( style ) => {
1616
.pipe( sass( {
1717
precision: 6,
1818
outputStyle: style,
19-
errLogToConsole: true,
20-
includePaths: [
21-
"node_modules"
22-
]
19+
errLogToConsole: true
2320
} ) )
2421
.pipe( postcss( [
2522
autoprefixer( {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "select2-bootstrap-5-theme",
33
"description": "Select2 v4 theme for Bootstrap 5",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"license": "MIT",
66
"author": "Andrew Palfrey <apalfrey@apalfrey.me>",
77
"repository": {
@@ -27,7 +27,7 @@
2727
],
2828
"main": "",
2929
"style": "dist/select2-bootstrap-5-theme.css",
30-
"sass": "scss/select2-bootstrap-5-theme.scss",
30+
"sass": "src/select2-bootstrap-5-theme.scss",
3131
"dependencies": {
3232
"bootstrap": "5.0.0-beta2"
3333
},

src/_multiple.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.select2-selection__rendered {
55
display: flex;
66
flex-direction: row;
7+
flex-wrap: wrap;
78
margin: 0;
89
list-style: none;
910

src/select2-bootstrap-5-theme.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*!
2-
* Select2 v4 Bootstrap 5 theme v1.0.0
2+
* Select2 v4 Bootstrap 5 theme v1.0.1
33
*/
44

5-
@import "bootstrap/scss/functions";
6-
@import "bootstrap/scss/variables";
7-
@import "bootstrap/scss/mixins";
5+
@import "node_modules/bootstrap/scss/functions";
6+
@import "node_modules/bootstrap/scss/variables";
7+
@import "node_modules/bootstrap/scss/mixins";
88

99
@import "variables";
1010

0 commit comments

Comments
 (0)