-
Notifications
You must be signed in to change notification settings - Fork 12
Refactor toggle button #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| return; | ||
| } | ||
|
|
||
| // No-op if already showing the desired fish set (matching or non-matching). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My one thought is to combine this early return with the one above. And maybe this comment could be consolidated to "Pond fish are those that match (belong in the pond), whereas recall fish do not."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice - will update!
hannahbergam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Alice!
This reverts commit ab7ee32.
|
|
||
| trainer.train(); | ||
|
|
||
| const details = trainer.detailedExplanation(trainingOcean[0].fieldInfos); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know you already reverted this- I do think it would be worth deflaking in the future but I was always able to get a passing build (dorsalFins test passing included) with a rerun
Follow-up to #412 (comment).
To improve a11y on
fishlevels, the toggle button was refactored into two buttons so that it is now keyboard-navigable and screenreader compliant.Prior to this update, the toggle button switched back and forth between displaying matching and non-matching fish sets.
Because the button as been refactored into two buttons, we update so that if a user selects the Checkmark button, the matching fish set is displayed and if the user selects the Banned button, the non-matching fish set is displayed, even if the buttons are selected multiple times.
Before update
toggle-button-current.mov
After update
On level without info button:
after-toggle-button.mov
On level with info button:
after-with-info.mov