Skip to content

Commit e543fea

Browse files
committed
Merge branch 'master' of github.com:EagerApps/Select
2 parents c4d7582 + 1c19a19 commit e543fea

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Select
22

3-
*Styleable select elements*
3+
*Select with Style*
44

5-
Select is a Javascript and CSS library for creating styleable select elements.
6-
Unlike many other select-replacements, Select is designed from the ground up to replicate the behavior of native select controls as much as is possible, providing a seemless experience for users.
7-
That means it works properly when you type characters, use tab for focus, etc.
8-
9-
Use Select where you would use a native select.
10-
It doesn't, and will never, provide any sort of autocomplete functionality, so you probably don't want to use it on a list of more than a few hundred elements.
5+
Select gives dropdown inputs a fresh look without any technical setup.
6+
Choose one of the three included themes and let us do the rest.

app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
INSTALL_SCOPE = {
1818
setOptions(nextOptions) {
19+
if (!document.body.classList) return
20+
1921
const elements = Array.prototype.slice.call(document.querySelectorAll("." + options.theme))
2022

2123
elements.forEach(element => {

build/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
INSTALL_SCOPE = {
1919
setOptions: function setOptions(nextOptions) {
20+
if (!document.body.classList) return;
21+
2022
var elements = Array.prototype.slice.call(document.querySelectorAll("." + options.theme));
2123

2224
elements.forEach(function (element) {

install.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
"select-theme-chosen"
4949
],
5050
"enumNames": {
51-
"select-theme-default": "Default Theme",
52-
"select-theme-dark": "Dark Theme",
53-
"select-theme-chosen": "Chosen Theme"
51+
"select-theme-default": "Light",
52+
"select-theme-dark": "Dark",
53+
"select-theme-chosen": "Compact"
5454
}
5555
}
5656
}

0 commit comments

Comments
 (0)