-
Notifications
You must be signed in to change notification settings - Fork 30
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
[HOLD] lib-classifier: Refactor survey task Choices, ChoiceButton, Choice, Questions, and Filter styling #6574
base: master
Are you sure you want to change the base?
Conversation
) * Refactor survey task choice colors, text size, spacing * Add info collapsible * Refactor Choice sections margins * Refactor Choice button borders * Refactor survey task tests per Choice layout changes * Fix more info align * Refactor choice cancel * Refactor Choice margin and padding * Refactor ConfusedWith button styling * Edit sub-heading color * Refactor QuestionInput margin and round * Edit Choice spacing * Refactor Question input label text color if dark theme and isChecked * Refactor Choice button spacing * Reduce spacing within Choice elements * Set question input spacing * Refactor Choice story container spacing * Remove unneeded a11yTitle * Refactor Choice heading and ConfusedWith button spacing * Add Carousel min height * Refactor info icons with aria-hidden
…#6494) * Refactor Choices stories with selected choices * Add initial ChoiceButton delete functionality * Refactor MockTask and Choices stories * Refactor Choices and ChoiceButton with alternate row shading * Refactor ChoiceButton thumbnail size * Refactor ChoiceButton styling * Refactor delete choice button * Remove unused imports, delete deprecated choice button theme, and remove no longer applicable comments * Add DeleteButton tests * Refactor ChoiceButton thumbnail image request for better quality image * Edit thumbnail width per whatSizeThumbnail helper * Edit ChoiceButton label text size and weight per variables * Refactor column sizes across media widths * Update whatSizeThumbnail tests per updated design * Refactor ChoiceButton and DeleteButton styling * Refactor Choices and ChoiceButton tab sequence * Add Home and End keystroke actions to menu * Refactor menuitem aria attributes * Refactor Choices tests * Refactor ChoiceButton tests * Refactor survey task tests * Refactors for ChoiceButton focus and hover states * Refactor Choices and Choice keyDown actions * Edit ChoiceButton border states * Edit ChoiceButton DeleteButton with no thumbnail * Add survey task Choices hide thumbnails story * Refactor Choices grid with no thumbnails * Refactor Choices grid columns per media width * Refactor ChoiceButton label for long content * Edit choices grid row height if no thumbnails * Fix ChoiceButton DeleteButton sizing * Refactor Choices thumbnail display to hide or show, remove hide if more than 30 choices * Add ChoiceButton translations * Refactor DeleteButton focus and hover styling * Refactors per review notes * Update survey task tests per translation changes
* Refactor Choices stories with selected choices * Add initial ChoiceButton delete functionality * Refactor MockTask and Choices stories * Refactor Choices and ChoiceButton with alternate row shading * Refactor ChoiceButton thumbnail size * Refactor ChoiceButton styling * Refactor delete choice button * Remove unused imports, delete deprecated choice button theme, and remove no longer applicable comments * Add DeleteButton tests * Refactor ChoiceButton thumbnail image request for better quality image * Edit thumbnail width per whatSizeThumbnail helper * Edit ChoiceButton label text size and weight per variables * Refactor column sizes across media widths * Update whatSizeThumbnail tests per updated design * Refactor ChoiceButton and DeleteButton styling * Refactor Choices and ChoiceButton tab sequence * Add Home and End keystroke actions to menu * Refactor menuitem aria attributes * Refactor Choices tests * Refactor ChoiceButton tests * Refactor survey task tests * Refactors for ChoiceButton focus and hover states * Refactor Choices and Choice keyDown actions * Edit ChoiceButton border states * Edit ChoiceButton DeleteButton with no thumbnail * Add survey task Choices hide thumbnails story * Refactor Choices grid with no thumbnails * Refactor Choices grid columns per media width * Refactor ChoiceButton label for long content * Edit choices grid row height if no thumbnails * Fix ChoiceButton DeleteButton sizing * Refactor Choices thumbnail display to hide or show, remove hide if more than 30 choices * Refactor InfoLabel text, choice label heading level
* Fix layout stories with survey task * Refactor CenteredLayout for various media sizes and survey task * Refactor survey task Chooser and Choices spacing * Edit margin and pad consistent with Grommet docs * Refactor Chooser margin and pad with `'0'` Co-authored-by: Delilah C. <[email protected]> * Fix sticky subject area * Refactor shared styled containers * Revert CenteredLayout refactor with grid * Remove responsive size context from CenteredLayout * Refactor CenteredLayout for task area with survey task * Fix CenteredLayout sticky behavior (#6645) * Add hasSurveyTask prop to StyledSubjectContainer instances --------- Co-authored-by: Delilah C. <[email protected]>
* Refactor Choices stories with selected choices * Add initial ChoiceButton delete functionality * Refactor MockTask and Choices stories * Refactor Choices and ChoiceButton with alternate row shading * Refactor ChoiceButton thumbnail size * Refactor ChoiceButton styling * Refactor delete choice button * Remove unused imports, delete deprecated choice button theme, and remove no longer applicable comments * Add DeleteButton tests * Refactor ChoiceButton thumbnail image request for better quality image * Edit thumbnail width per whatSizeThumbnail helper * Edit ChoiceButton label text size and weight per variables * Refactor column sizes across media widths * Update whatSizeThumbnail tests per updated design * Refactor ChoiceButton and DeleteButton styling * Refactor Choices and ChoiceButton tab sequence * Add Home and End keystroke actions to menu * Refactor menuitem aria attributes * Refactor Choices tests * Refactor ChoiceButton tests * Refactor survey task tests * Initial survey task filters refactor to FilterLabel, radio input group * Fix layout stories with survey task * Refactor CenteredLayout for various media sizes and survey task * Refactor survey task Chooser and Choices spacing * Edit margin and pad consistent with Grommet docs * Refactor FilterLabel selected state styling * Refactor FilterStatus and Characteristics from drop button to collapsible * Refactor Characteristics styling * Revert Chooser and FilterStatus change * Refactor Characteristics and related styling, add Characteristics story * Refactor FilterStatus styling * Refactor ClearFilters section styling * Refactor FilterLabel tests * Refactor FilterStatus tests * Refactor survey task tests per filtering changes * Fix focus issues with filters and choices * Add aria-controls and aria-expanded to Filters button * Refactor Chooser margin and pad with `'0'` Co-authored-by: Delilah C. <[email protected]> * Fix sticky subject area * Refactor shared styled containers * Rebase edits * Add text-decoration underline to close filters button * Refactor Characteristics spacing * Refactor selected filters position * Add AnnounceContext for choices per filters * Adjust FilterStatus icon size --------- Co-authored-by: Delilah C. <[email protected]>
I believe the scroll issue identified in #6619 (comment) is fixed with 997c842. |
...fier/src/components/Classifier/components/Layout/components/CenteredLayout/CenteredLayout.js
Show resolved
Hide resolved
The only things I noticed on final review: On mobile, when the layout shifts to single column, the choice heights w/ thumbnails are 50px. Should still be 60px height. Note - this looks ok on a project like Woodpecker Cavity Cam (which already has a single row of choices) until you get narrower than ~430px screen width. Add 5px margin or padding to top of 'Close Filters' button. (When inspecting I couldn't find how the style is coded) Otherwise, LGTM! Ready for testing! |
Great catches @seanmiller26 ! Changes made 👍 |
Caution
DO NOT MERGE. THIS BRANCH IS BEING USED TO ACCUMULATE AND TEST THE SURVEY TASK REDESIGN
Package
Linked Issue and/or Talk Post
Describe your changes
[ ...incoming... ]
How to Review
Helpful explanations that will make your reviewer happy:
Checklist
PR Creator - Please cater the checklist to fit the review needed for your code changes.
PR Reviewer - Use the checklist during your review. Each point should be checkmarked or discussed before PR approval.
General
yarn panic && yarn bootstrap
ordocker-compose up --build
and FEM works as expectedGeneral UX
Example Staging Project: i-fancy-cats
Bug Fix
Refactoring
Post-merge