Skip to content

Commit 6538edc

Browse files
refactor: ♻️ transparent search box (#514)
1 parent 48567ab commit 6538edc

File tree

4 files changed

+1581
-601
lines changed

4 files changed

+1581
-601
lines changed

docs/recipes/theming.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
You can override CSS variables to customize the appearance
44

5-
65
```css
76
.rmsc {
87
--rmsc-main: #4285f4;
@@ -20,3 +19,23 @@ You can override CSS variables to customize the appearance
2019
<Callout emoji="💡">
2120
use `!important` if CSS variables are not getting applied
2221
</Callout>
22+
23+
## Dark Mode
24+
25+
if you are using any UI framework that supports dark mode and want to extend the same to `react-multi-select-component` you can do that by passing override class and styles like below
26+
27+
```jsx
28+
<MultiSelect className="dark" {...otherProps} />
29+
```
30+
31+
```css
32+
.rmsc.dark {
33+
--rmsc-main: #4285f4;
34+
--rmsc-hover: #0e0c0a;
35+
--rmsc-selected: #1d1915;
36+
--rmsc-border: #333333;
37+
--rmsc-gray: #555555;
38+
--rmsc-bg: #000000;
39+
color: #fff;
40+
}
41+
```

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,34 +34,34 @@
3434
},
3535
"dependencies": {},
3636
"devDependencies": {
37-
"@babel/cli": "^7.15.7",
38-
"@babel/core": "^7.15.5",
39-
"@babel/preset-react": "^7.14.5",
40-
"@babel/preset-typescript": "^7.15.0",
41-
"@size-limit/preset-small-lib": "^5.0.4",
42-
"@storybook/addon-actions": "^6.3.8",
43-
"@storybook/addon-essentials": "^6.3.8",
37+
"@babel/cli": "^7.16.0",
38+
"@babel/core": "^7.16.0",
39+
"@babel/preset-react": "^7.16.0",
40+
"@babel/preset-typescript": "^7.16.0",
41+
"@size-limit/preset-small-lib": "^6.0.4",
42+
"@storybook/addon-actions": "^6.3.12",
43+
"@storybook/addon-essentials": "^6.3.12",
4444
"@storybook/addon-knobs": "^6.3.1",
45-
"@storybook/addon-links": "^6.3.8",
46-
"@storybook/react": "^6.3.8",
47-
"@types/react": "^17.0.24",
48-
"@types/react-dom": "^17.0.9",
49-
"@typescript-eslint/eslint-plugin": "^4.31.2",
50-
"@typescript-eslint/parser": "^4.31.2",
51-
"babel-loader": "^8.2.2",
45+
"@storybook/addon-links": "^6.3.12",
46+
"@storybook/react": "^6.3.12",
47+
"@types/react": "^17.0.34",
48+
"@types/react-dom": "^17.0.11",
49+
"@typescript-eslint/eslint-plugin": "^5.3.1",
50+
"@typescript-eslint/parser": "^5.3.1",
51+
"babel-loader": "^8.2.3",
5252
"babel-plugin-transform-css-import-to-string": "^0.0.2",
53-
"concurrently": "^6.2.1",
53+
"concurrently": "^6.4.0",
5454
"cross-env": "^7.0.3",
55-
"eslint": "^7.32.0",
55+
"eslint": "^8.2.0",
5656
"eslint-config-prettier": "^8.3.0",
5757
"eslint-plugin-prettier": "^4.0.0",
58-
"eslint-plugin-react": "^7.26.0",
58+
"eslint-plugin-react": "^7.27.0",
5959
"eslint-plugin-simple-import-sort": "^7.0.0",
60-
"husky": "^7.0.2",
60+
"husky": "^7.0.4",
6161
"prettier": "^2.4.1",
62-
"react": "^17.0.1",
62+
"react": "^17.0.2",
6363
"react-dom": "^17.0.2",
64-
"typescript": "^4.4.3"
64+
"typescript": "^4.4.4"
6565
},
6666
"browserslist": [
6767
"defaults",

src/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
}
121121

122122
.rmsc .search input {
123+
background: none;
123124
height: var(--rmsc-h);
124125
padding: 0 var(--rmsc-p);
125126
width: 100%;

0 commit comments

Comments
 (0)