From daae34dab6963a27d968169c3cb2e4d75f469249 Mon Sep 17 00:00:00 2001 From: Waheed Ahmed Date: Wed, 10 Mar 2021 00:11:33 +0500 Subject: [PATCH] Bug fixes (#198) Level of education other option key was incorrect and year of birth field going out of the form. --- src/_style.scss | 4 ++++ src/register/data/constants.js | 2 +- src/register/messages.jsx | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/_style.scss b/src/_style.scss index f30db09b..c0e52ea2 100644 --- a/src/_style.scss +++ b/src/_style.scss @@ -242,6 +242,10 @@ $apple-focus-black: $apple-black; .opt-inline-field { display: inline-block; width: 50%; + + .form-control { + width: 100%; + } } .opt-year-field { diff --git a/src/register/data/constants.js b/src/register/data/constants.js index 872387ca..33c05fa6 100644 --- a/src/register/data/constants.js +++ b/src/register/data/constants.js @@ -20,7 +20,7 @@ export const EDUCATION_LEVELS = [ 'jhs', 'el', 'none', - 'o', + 'other', ]; export const GENDER_OPTIONS = ['', 'f', 'm', 'o']; diff --git a/src/register/messages.jsx b/src/register/messages.jsx index 25394f9c..17194d2c 100644 --- a/src/register/messages.jsx +++ b/src/register/messages.jsx @@ -253,8 +253,8 @@ const messages = defineMessages({ defaultMessage: 'No formal education', description: 'Selected by the user to describe their education.', }, - 'registration.field.education.levels.o': { - id: 'registration.field.education.levels.o', + 'registration.field.education.levels.other': { + id: 'registration.field.education.levels.other', defaultMessage: 'Other education', description: 'Selected by the user if they have a type of education not described by the other choices.', },