Ttracy/demographics bugs 19 20 (#25148)
* Focus first input when loading a wizard page * Add aria-hidden to info icon:
This commit is contained in:
@@ -272,7 +272,7 @@ class DemographicsCollectionModal extends React.Component {
|
|||||||
{gettext('Welcome to edX! Before you get started, please take a few minutes to fill-in the additional information below to help us understand a bit more about your background. You can always edit this information later in Account Settings.')}
|
{gettext('Welcome to edX! Before you get started, please take a few minutes to fill-in the additional information below to help us understand a bit more about your background. You can always edit this information later in Account Settings.')}
|
||||||
</p>
|
</p>
|
||||||
<br />
|
<br />
|
||||||
<span className="fa fa-info-circle" />
|
<span aria-hidden className="fa fa-info-circle" />
|
||||||
{/* Need to strip out extra '"' characters in the marketingSiteBaseUrl prop or it tries to setup the href as a relative URL */}
|
{/* Need to strip out extra '"' characters in the marketingSiteBaseUrl prop or it tries to setup the href as a relative URL */}
|
||||||
<a className="pl-3" target="_blank" rel="noopener" href={`${this.props.marketingSiteBaseUrl}/demographics`.replace(/"/g, "")}>
|
<a className="pl-3" target="_blank" rel="noopener" href={`${this.props.marketingSiteBaseUrl}/demographics`.replace(/"/g, "")}>
|
||||||
{gettext('Why does edX collect this information?')}
|
{gettext('Why does edX collect this information?')}
|
||||||
@@ -355,6 +355,7 @@ class DemographicsCollectionModal extends React.Component {
|
|||||||
{gettext("Have you ever served on active duty in the U.S. Armed Forces, Reserves, or National Guard?")}
|
{gettext("Have you ever served on active duty in the U.S. Armed Forces, Reserves, or National Guard?")}
|
||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
|
autoFocus
|
||||||
className="form-control"
|
className="form-control"
|
||||||
onChange={this.handleSelectChange}
|
onChange={this.handleSelectChange}
|
||||||
name={FIELD_NAMES.MILITARY}
|
name={FIELD_NAMES.MILITARY}
|
||||||
@@ -381,7 +382,9 @@ class DemographicsCollectionModal extends React.Component {
|
|||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
className="form-control"
|
className="form-control"
|
||||||
|
autoFocus
|
||||||
onChange={this.handleSelectChange}
|
onChange={this.handleSelectChange}
|
||||||
|
key="self-education"
|
||||||
name={FIELD_NAMES.EDUCATION_LEVEL}
|
name={FIELD_NAMES.EDUCATION_LEVEL}
|
||||||
id={FIELD_NAMES.EDUCATION_LEVEL}
|
id={FIELD_NAMES.EDUCATION_LEVEL}
|
||||||
value={wizardConsumer[FIELD_NAMES.EDUCATION_LEVEL]}
|
value={wizardConsumer[FIELD_NAMES.EDUCATION_LEVEL]}
|
||||||
@@ -399,7 +402,7 @@ class DemographicsCollectionModal extends React.Component {
|
|||||||
{gettext("What is the highest level of education that any of your parents or guardians have achieved?")}
|
{gettext("What is the highest level of education that any of your parents or guardians have achieved?")}
|
||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
className="form-control pb-3"
|
className="form-control"
|
||||||
onChange={this.handleSelectChange}
|
onChange={this.handleSelectChange}
|
||||||
name={FIELD_NAMES.PARENT_EDUCATION}
|
name={FIELD_NAMES.PARENT_EDUCATION}
|
||||||
id={FIELD_NAMES.PARENT_EDUCATION}
|
id={FIELD_NAMES.PARENT_EDUCATION}
|
||||||
@@ -444,7 +447,7 @@ class DemographicsCollectionModal extends React.Component {
|
|||||||
{gettext("What industry do you currently work in?")}
|
{gettext("What industry do you currently work in?")}
|
||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
className="form-control pb-3"
|
className="form-control"
|
||||||
onChange={this.handleSelectChange}
|
onChange={this.handleSelectChange}
|
||||||
name={FIELD_NAMES.CURRENT_WORK}
|
name={FIELD_NAMES.CURRENT_WORK}
|
||||||
id={FIELD_NAMES.CURRENT_WORK}
|
id={FIELD_NAMES.CURRENT_WORK}
|
||||||
@@ -463,7 +466,7 @@ class DemographicsCollectionModal extends React.Component {
|
|||||||
{gettext("What industry do you want to work in?")}
|
{gettext("What industry do you want to work in?")}
|
||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
className="form-control pb-3"
|
className="form-control"
|
||||||
onChange={this.handleSelectChange}
|
onChange={this.handleSelectChange}
|
||||||
name={FIELD_NAMES.FUTURE_WORK}
|
name={FIELD_NAMES.FUTURE_WORK}
|
||||||
id={FIELD_NAMES.FUTURE_WORK}
|
id={FIELD_NAMES.FUTURE_WORK}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ export const SelectWithInput = (props) => {
|
|||||||
<div className="d-flex flex-column pb-3">
|
<div className="d-flex flex-column pb-3">
|
||||||
<label htmlFor={selectName}>{labelText}</label>
|
<label htmlFor={selectName}>{labelText}</label>
|
||||||
<select
|
<select
|
||||||
|
autoFocus
|
||||||
className="form-control"
|
className="form-control"
|
||||||
name={selectName}
|
name={selectName}
|
||||||
id={selectId}
|
id={selectId}
|
||||||
|
|||||||
Reference in New Issue
Block a user