Skip to content

Commit 38d4c05

Browse files
committed
aesthetics
1 parent a3d2967 commit 38d4c05

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ qx.Class.define("osparc.ui.form.IntlTelInput", {
167167

168168
const textColor = qx.theme.manager.Color.getInstance().resolve("text");
169169
const bgColor = qx.theme.manager.Color.getInstance().resolve("input_background");
170+
const productColor = qx.theme.manager.Color.getInstance().resolve("product-color");
170171
const height = isCompact ? 24 : 25;
171172

172173
phoneNumber.set({
@@ -196,6 +197,7 @@ qx.Class.define("osparc.ui.form.IntlTelInput", {
196197

197198
document.documentElement.style.setProperty('--country-list-dropdown-bg', bgColor);
198199
document.documentElement.style.setProperty('--country-list-dropdown-text', textColor);
200+
document.documentElement.style.setProperty('--border-bottom-color-focused', productColor);
199201
},
200202

201203
__convertInputToPhoneInput: function() {

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,13 +943,18 @@
943943
.iti__flag.iti__np {
944944
background-color: transparent; }
945945

946+
/* osparc */
946947
.iti input {
947948
border: none !important;
948-
border-bottom: 1px solid var(--q-color-border, green) !important;
949+
border-bottom: 1px solid var(--border-bottom-color, rgb(9, 89, 122)) !important;
949950
outline: none !important;
950951
box-shadow: none !important;
951952
}
952953

953954
.iti input:focus {
954-
border-bottom: 1px solid var(--q-color-focus, red) !important;
955+
border-bottom: 1px solid var(--border-bottom-color-focused) !important;
956+
}
957+
958+
.iti input:invalid {
959+
border-bottom: 1px solid red !important;
955960
}

0 commit comments

Comments
 (0)