Commit Graph

18 Commits

Author SHA1 Message Date
Christie Rice
2ca9b6c4e8 MICROBA-734 Add class (#25744) 2020-12-03 11:54:05 -05:00
Christie Rice
d80a7786e1 MICROBA-734 Rename specific color (#25671) 2020-11-24 10:13:00 -05:00
Thomas Tracy
6d88ad96cb Ttracy/mb 618 modal fast follow (#25217)
* Fix ref on multiselect button to prevent if from staying open
2020-10-05 10:05:41 -04:00
Thomas Tracy
f605ce3763 Fix aria-hidden on info icon (#25167)
* Fix aria-hidden on info icon

* caps
2020-09-30 12:26:56 -04:00
Thomas Tracy
bf0de81c57 Ttracy/demographics bugs 19 20 (#25148)
* Focus first input when loading a wizard page

* Add aria-hidden to info icon:
2020-09-29 13:37:19 -04:00
Justin Hynes
77d63c57f0 Merge pull request #25138 from edx/jhynes/MB-600_demographics-link-new-tab
MB-600 | Open demographics modal link in new tab
2020-09-29 10:21:04 -04:00
Thomas Tracy
b1ed288915 Fix form auto-filling "prefer not to respond" (#25126)
An issue with 2 options having the same react child key. This makes the
keys more unique.
2020-09-29 09:42:13 -04:00
Justin Hynes
66821bb1e1 MB-600 | Open demographics modal link in new tab
[MB-600]
- Update demographics modal to open embedded link in new tab
2020-09-29 09:33:21 -04:00
Justin Hynes
e200215421 MICROBA-596 | Adjust style of MultiSelect dropdown in demographics modal
[MICROBA-596]
- Add space between checkbox and label
- Adjust spacing between end of MultiSelect dropdown choices and next question
2020-09-28 16:03:39 -04:00
Albert (AJ) St. Aubin
1b298deaad Suppress Hotjar on demographic collection modal 2020-09-28 13:29:21 -04:00
Thomas Tracy
331952550c Modal Bugfixes (#25101)
- fixes an issue with the keyboard not properly opening the multiselect
- Adds missing aria-label
- properly disables "clear all" on multiselect when theres an error
2020-09-25 15:27:14 -04:00
Justin Hynes
055595e39e MICROBA-595 | Add default option to work status choices
[MICROBA-595]
- Add default option to work status choices
2020-09-24 15:30:35 -04:00
Thomas Tracy
132898b991 Trap focus in modal and other a11y work (#25063) 2020-09-23 14:51:08 -04:00
Thomas Tracy
a7d7de3418 Change around POST code for demographics modal (#25019)
* Change around POST code for demographics modal

CSRF tokens were not working on stage when the user does not have an
entry in the demographics db when using the modal. This restructures the
code a bit and hopefully fixes the problem.

* Remove logs

* Rework things into smaller digestable functions
2020-09-21 12:56:06 -04:00
Thomas Tracy
2bac015648 Add CSRF to post requests to demographics (#24999)
* Add CSRF to post requests to demographics

* Reorganize code
2020-09-17 09:35:02 -04:00
Thomas Tracy
35bbf068a6 Add CSRF code to demographics modal (#24998)
* Add CSRF tokens to demographics modal PATCH

We have temporarilly copied over the CSRF code from frontend-platform to
use with the demographics modal. This code is most likely temporary and
is not maintained like frontend-platform.
2020-09-16 15:12:07 -04:00
Thomas Tracy
edc9705af7 Fix demographics wizard bug - pages not showing. (#24983)
* Fix demographics wizard bug - pages not showing.

This bug was caused by uglifyjs in 2 ways:
- uglify strips out type information. This was mitigated by using the
  React.Children tools to prevent the type information from being
striped out.
- uglify mangles names of components. We were searching for components
  by a string of the name. This was solved by using the name property
directly off of the component, as opposed to a string.

* Clean up the children function
2020-09-15 13:52:58 -04:00
Thomas Tracy
0151b80ab7 A modal used to collect demographics information (#24956)
* A modal used to collect demographics information

Add checkmark to final page (#24957)

Remove themeing to get ready for staging

MICROBA-574 | Dismiss CTA after learner finishes answering modal questions (#24965)

[MICROBA-574]
- Dismiss CTA after learner finishes answering demographics questions
- Cleanup comments

* Various initial bugfixes

- fixes 2 issues with the multiselect dropdown erasing state
- prevents input higher than 255 characters in the self describe
- fixes 400 errors when the user selects a default option
- Removes additional page count section

- Re-adding deleted JS file. Can't clean this up until after we cutover to using the new Demographics modal

* Add translatable string to clear button

* Remove extra page counter from the header for the third time

* Remove unneeded template context

Co-authored-by: Matt Tuchfarber <mtuchfarber@edx.org>
Co-authored-by: Justin Hynes <jhynes@edx.org>
2020-09-14 09:28:06 -04:00