Skip to content

Commit 8c48285

Browse files
added css properties for react-phone-input (#2549)
Signed-off-by: msivasubramaniaan <[email protected]> Signed-off-by: msivasubramaniaan <[email protected]>
1 parent d1973d7 commit 8c48285

File tree

3 files changed

+46
-4
lines changed

3 files changed

+46
-4
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.react-tel-input .flag-dropdown {
2+
background-color: var(--vscode-settings-textInputBackground) !important;
3+
}
4+
5+
.react-tel-input .selected-flag {
6+
background: var(--vscode-settings-textInputBackground) !important;
7+
}
8+
9+
.react-tel-input .country-list .country.highlight {
10+
background-color: var(--vscode-list-activeSelectionBackground) !important;
11+
color: var(--vscode-list-activeSelectionForeground) !important;
12+
border: 0.3px solid;
13+
border-color: var(--vscode-focusBorder) !important;
14+
}
15+
16+
.react-tel-input .country-list .country:hover {
17+
background-color: var(--vscode-list-hoverBackground) !important;
18+
color: var(--vscode-list-hoverForeground) !important;
19+
border: 0.3px solid;
20+
border-color: var(--vscode-focusBorder) !important;
21+
}

src/webview/cluster/app/sandboxView.tsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import Tooltip from '@mui/material/Tooltip';
1212
import PhoneInput from "react-phone-input-2";
1313
import 'react-phone-input-2/lib/style.css'
1414
import * as ClusterViewStyles from './clusterView.style';
15+
import './clusterView.scss';
1516

1617
const useStyles = makeStyles(ClusterViewStyles.useStyles);
1718

@@ -246,8 +247,25 @@ export default function addSandboxView(props): JSX.Element {
246247
isValid={isValid}
247248
disabled={inProgress}
248249
containerStyle={{display: 'inline-flex', margin: '20px 10px 20px 10px', width: 'unset'}}
249-
dropdownStyle={{position: 'fixed', margin: '0px 0 10px -1px', textAlign: 'initial'}}
250-
inputStyle={{width: 'unset'}}
250+
dropdownStyle = {{
251+
position: 'fixed',
252+
margin: '0px 0 10px -1px',
253+
textAlign: 'initial',
254+
background: 'var(--vscode-settings-textInputBackground)',
255+
border: '0.5px solid',
256+
borderColor: 'var(--vscode-focusBorder)'
257+
}}
258+
buttonStyle = {{
259+
border: '0.5px solid',
260+
borderColor: 'var(--vscode-focusBorder)'
261+
}}
262+
inputStyle = {{
263+
width: '10rem !important',
264+
background: 'var(--vscode-settings-textInputBackground)',
265+
border: '0.5px solid',
266+
borderColor: 'var(--vscode-focusBorder)',
267+
color: 'var(--vscode-settings-textInputForeground)'
268+
}}
251269
/>
252270
<Button
253271
style = {{ margin: '20px 10px 20px 10px' }}

src/webview/cluster/webpack.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,17 @@ module.exports = {
3131
loader: "ts-loader",
3232
},
3333
{
34-
test: /\.css$/,
34+
test: /\.(css|scss)$/,
3535
use: [
3636
{
3737
loader: "style-loader",
3838
},
3939
{
4040
loader: "css-loader",
4141
},
42+
{
43+
loader: "sass-loader",
44+
}
4245
]
4346
},
4447
{
@@ -67,4 +70,4 @@ module.exports = {
6770
}]
6871
})
6972
],
70-
};
73+
};

0 commit comments

Comments
 (0)