freeCodeCamp/client
Oliver Eyton-Williams 15309a88d0
fix: update lower jaw on ctrl enter (#47463)
* fix: update jaw on all ctrl-enter presses

* fix: show running tests while hiding feedback

Screenreaders still announcing running tests and then the output, and
the display now stops showing a flash of the new feedback message

* refactor: camelCase

* refactor: clean up and reduce renders

previousHint isn't really state, insofar as it changing should not
trigger a new render - a ref does the trick.

* chore: remove log

* fix: use ref to track latest attempts prop

* fix: allow lower jaw to trigger viewzone updates

React.render's callback cannot be relied on. It does not necessarily
get called on every update to the rendered element.

updateContainer is called on every render, so the editor will be
updated.

* refactor: attemptsNumber -> attempts

* fix: do not render on attempt changes

* refactor: more camelCase

* fix: try to prevent previous hint rendering

Co-authored-by:
Manabu Matsumoto <mmatsumoto1026@gmail.com>

* test: resetting of lower jaw

* fix: reset lower jaw when step is reset

* test: check congrats message appears on completion

* fix: hide feedback after reset

* fix: leave focus in the editor after passing tests

This is an attempt to work around a JAWS issue whereby the submit
shortcut (ctrl+enter) is ignored after the user passes all tests.

* test: submit button receives focus when tests pass

* fix: focus submit button when tests pass

Co-authored-by: Bruce Blaser <bbsmooth@gmail.com>

Co-authored-by: Bruce Blaser <bbsmooth@gmail.com>
2022-09-15 12:44:06 -05:00
..
i18n feat: volume slider campfire mode (#47259) 2022-09-15 15:42:03 +03:00
plugins fix(dx): make gatsby id static for hot reloading (#44542) 2022-01-10 11:03:20 +02:00
src fix: update lower jaw on ctrl enter (#47463) 2022-09-15 12:44:06 -05:00
static chore: delete _headers file from Netlify days (#46176) 2022-05-27 19:57:20 +05:30
utils feat: expose submit types to API (#47293) 2022-08-18 00:08:22 +05:30
.babelrc.js fix: control CodeSee via .env variable (#42428) 2021-06-10 18:38:14 +05:30
.gitignore chore(client): refactor & organise config (#40875) 2021-02-03 15:22:07 +05:30
gatsby-browser.js fix: set _csrf to be httpOnly (#46366) 2022-06-08 16:54:23 +03:00
gatsby-config.js Add Sentry to client for error handling (#43920) 2022-04-15 09:54:02 -05:00
gatsby-node.js feat: improve file insertion (#45942) 2022-05-14 10:06:26 +05:30
gatsby-ssr.js fix: order imports and remove circular dependencies (#41824) 2021-08-02 08:39:40 -05:00
package.json fix(deps): update font awesome to v6.2.0 (#47443) 2022-09-12 17:16:32 +05:30
postcss.config.js feat: commandline chic 2019-08-20 13:37:11 +05:30
webpack-workers.js fix: update path of webpack bundles (#46180) 2022-05-27 19:36:05 +02:00