Skip to content
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

update dependencies: September 2023 #4860

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

josh-heyer
Copy link
Contributor

What Changed?

Notable updates:

  • Husky
  • Prettier
  • Algolia
  • Bootstrap

The last two required substantial revisions to support the major version updates. As part of these, I've fixed a few related issues:

  • incorrect path parsing for 404 page search (it was prefixing most searches with "docs")
  • race condition in global search bar initialization (click too fast, no search)
  • honor system dark mode preference when no local preference is set

Also replaced pretty-quick with lint-staged, as new prettier is unsupported by the former. May not have the configuration quite right for this.

@josh-heyer josh-heyer force-pushed the chore/update-dependencies-9-2023 branch from 0d319a5 to 2bc4913 Compare September 27, 2023 18:33
@josh-heyer josh-heyer added the deploy Add this label to a PR and it will automatically be deployed to netlify label Sep 27, 2023
@josh-heyer josh-heyer force-pushed the chore/update-dependencies-9-2023 branch from 2bc4913 to c8e853b Compare September 28, 2023 04:15
@github-actions
Copy link
Contributor

github-actions bot commented Sep 28, 2023

@github-actions github-actions bot temporarily deployed to pr-4860-chore-update-dependencies-9-2023 September 28, 2023 04:33 Inactive
@josh-heyer josh-heyer requested a review from djw-m September 28, 2023 05:06
@djw-m
Copy link
Contributor

djw-m commented Sep 28, 2023

The search box's category -> All Products etc. -> has flipped from white on blue to black on blue. (I'm on a light mode system setting here) flipping mode doesn't change colour (as per current production) - seems to have just been flipped.

@djw-m
Copy link
Contributor

djw-m commented Sep 28, 2023

image

Little odd - I assume that it's the mismatch between the algolia db and the preview but wanted to flag that.

djw-m
djw-m previously approved these changes Sep 28, 2023
Copy link
Contributor

@djw-m djw-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the color change in the search box,LGTM. Couldn't snag anything else.

@josh-heyer
Copy link
Contributor Author

josh-heyer commented Sep 29, 2023

Took me way too long to figure out the color thing. Turns out Bootstrap 5 picks a foreground color based on what will provide the best contrast for the background... And our blue has crappy contrast with white:

image

Options:

  1. Leave text black (and adjust styles on other buttons to match)
  2. Use a slightly darker shade of blue (e.g. #3e6e8e)

@djw-m
Copy link
Contributor

djw-m commented Sep 29, 2023 via email

@github-actions github-actions bot temporarily deployed to pr-4860-chore-update-dependencies-9-2023 September 29, 2023 15:25 Inactive
upgrade icons
upgrade bootstrap
upgrade husky
- switch to instantsearch 7 API
- address breaking changes in boostrap 5
- fix: incorrect path parsing for 404 page search
- fix: race condition in global search bar initialization
- fix: product filter dropdown appears behind search results in global search
- fix: honor system dark mode preference when no local preference is set
Also replaced pretty-quick with lint-staged, as new prettier is unsupported by the former
(black text on blue for primary for now to hit contrast needs)
Also re-enable underlines for hover on links.
At some point this needs a thorough review for accessibility
@josh-heyer josh-heyer force-pushed the chore/update-dependencies-9-2023 branch from 814c26a to 6135977 Compare September 29, 2023 16:26
@josh-heyer
Copy link
Contributor Author

Altered rules to achieve consistency for now; added #4868 to track future work on better contrast.

@josh-heyer josh-heyer merged commit ce2f22b into develop Sep 29, 2023
1 check passed
@josh-heyer josh-heyer deleted the chore/update-dependencies-9-2023 branch September 29, 2023 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy Add this label to a PR and it will automatically be deployed to netlify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants