This PR addresses issues with the color picker anchor is not draggable on the application branding page, updates the color picker library, and fixes a bug with the "Recalculate" button for dark mode colors.
Changes:
Fixed color picker re-rendering issue in application branding page
Refactored NonThirdPartyBrandingForm to use useFormContext instead of useCallback, this prevents the color palette from closing unexpectedly when color value changed due to unnecessary re-renders
Replaced react-color with react-color-palette as react-color is no longer actively maintained
Fixed "Recalculate" button not marking form as dirty
Added { shouldDirty: true } when recalculating dark primary color to properly update form state
Summary
This PR addresses issues with the color picker anchor is not draggable on the application branding page, updates the color picker library, and fixes a bug with the "Recalculate" button for dark mode colors.
Changes:
Fixed color picker re-rendering issue in application branding page
NonThirdPartyBrandingForm
to useuseFormContext
instead ofuseCallback
, this prevents the color palette from closing unexpectedly when color value changed due to unnecessary re-rendersReplaced
react-color
withreact-color-palette
asreact-color
is no longer actively maintainedFixed "Recalculate" button not marking form as dirty
{ shouldDirty: true }
when recalculating dark primary color to properly update form stateTesting
https://github.com/user-attachments/assets/a57191dd-6aec-4ad7-b15d-89c00d4f0ae9
Checklist
- [ ].changeset
- [ ] unit tests- [ ] integration tests- [ ] necessary TSDoc comments