@@ -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 ) ) ; 
0 commit comments