diff --git a/res/css/structures/auth/_Login.scss b/res/css/structures/auth/_Login.scss index e65b69163b..75e2f93d7b 100644 --- a/res/css/structures/auth/_Login.scss +++ b/res/css/structures/auth/_Login.scss @@ -95,6 +95,7 @@ limitations under the License. flex: 1 1 auto; } +// TODO-START: Remove up to TODO-END when all the country dropdowns are in Fields .mx_Login_field_prefix { height: 38px; padding: 0px 5px; @@ -141,3 +142,4 @@ limitations under the License. margin: 3px; vertical-align: top; } +// TODO-END: Remove from TODO-START when all the country dropdowns are in Fields diff --git a/res/css/views/elements/_Field.scss b/res/css/views/elements/_Field.scss index 1d3a3652fb..4a74262fd4 100644 --- a/res/css/views/elements/_Field.scss +++ b/res/css/views/elements/_Field.scss @@ -140,3 +140,14 @@ limitations under the License. background-color: $field-focused-label-bg-color; color: $greyed-fg-color; } + +// Customise other components when placed inside a Field + +.mx_Field .mx_Dropdown_input { + border: initial; + border-radius: initial; +} + +.mx_Field .mx_CountryDropdown { + width: 67px; +} diff --git a/src/components/views/auth/RegistrationForm.js b/src/components/views/auth/RegistrationForm.js index 1a328ef34a..4275a24b49 100644 --- a/src/components/views/auth/RegistrationForm.js +++ b/src/components/views/auth/RegistrationForm.js @@ -357,32 +357,27 @@ module.exports = React.createClass({ const CountryDropdown = sdk.getComponent('views.auth.CountryDropdown'); let phoneSection; if (threePidLogin && this._authStepIsUsed('m.login.msisdn')) { - const phonePlaceholder = this._authStepIsRequired('m.login.msisdn') ? + const phoneLabel = this._authStepIsRequired('m.login.msisdn') ? _t("Phone") : _t("Phone (optional)"); - phoneSection = ( -