Skip to content

Commit 69e63b9

Browse files
committed
aesthetics
1 parent 41f1613 commit 69e63b9

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

services/static-webserver/client/source/class/osparc/widget/IntlTelInput.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,16 @@ qx.Class.define("osparc.widget.IntlTelInput", {
7070

7171
statics: {
7272
updateStyle: function(itiInput, checkIcon) {
73+
const textColor = qx.theme.manager.Color.getInstance().resolve("text");
74+
const bgColor = qx.theme.manager.Color.getInstance().resolve("input_background");
7375
itiInput.a.style["width"] = checkIcon && checkIcon.isVisible() ? "185px" : "215px";
7476
itiInput.a.style["height"] = "26px";
7577
itiInput.a.style["borderWidth"] = "0px";
76-
itiInput.a.style["backgroundColor"] = qx.theme.manager.Color.getInstance().resolve("input_background");
77-
itiInput.a.style["color"] = qx.theme.manager.Color.getInstance().resolve("text");
78+
itiInput.a.style["backgroundColor"] = bgColor;
79+
itiInput.a.style["color"] = textColor;
80+
81+
document.documentElement.style.setProperty('--country-list-dropdown-bg', bgColor);
82+
document.documentElement.style.setProperty('--country-list-dropdown-text', textColor);
7883
}
7984
},
8085

@@ -124,7 +129,8 @@ qx.Class.define("osparc.widget.IntlTelInput", {
124129
.then(data => callback(data.country_code))
125130
.catch(() => callback("ch"));
126131
},
127-
preferredCountries: []
132+
preferredCountries: [],
133+
dropdownContainer: document.body,
128134
});
129135
const themeManager = qx.theme.manager.Meta.getInstance();
130136
themeManager.addListener("changeTheme", () => this.self().updateStyle(iti));

services/static-webserver/client/source/resource/intl-tel-input/css/intlTelInput.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,15 @@
5353
overflow-y: scroll;
5454
-webkit-overflow-scrolling: touch;
5555
/* osparc */
56-
background-color: #202426;
57-
margin: 1px;
56+
font-size: 13px;
57+
font-family: 'Manrope', sans-serif;
58+
margin: 0px;
59+
margin-left: -1px;
5860
border-radius: 4px;
61+
border-top-left-radius: 0px;
62+
border: 0px;
63+
background: var(--country-list-dropdown-bg);
64+
color: var(--country-list-dropdown-text);
5965
}
6066
.iti__country-list--dropup {
6167
bottom: 100%;

0 commit comments

Comments
 (0)