material-foundation / material-theme-builder

Visualize dynamic color and create a custom Material Theme.
https://material-foundation.github.io/material-theme-builder/
Apache License 2.0
363 stars 28 forks source link

Originally generated secondary color cannot be manually set. #61

Closed aisgbnok closed 2 years ago

aisgbnok commented 2 years ago

Describe the bug A primary/source color is used to generate a palette. If you change the secondary color, it changes, but if you try to manually set it back to the generated color it won't accept it. This may be related to #60, but I am unsure? To get the generated secondary color back you have to reinput the primary/source color and have the entire palette be regenerated.

To Reproduce Steps to reproduce the behavior:

  1. Go to Material Theme Builder for Web
  2. Click on "Custom"
  3. Right-click on "Primary"
  4. Input #2c974b and click "OK"
  5. Palette is generated including the Secondary color #516351
  6. Change the Secondary color to an arbitrary value
  7. Attempt to change Secondary color back to the originally generated color #516351
  8. Secondary color instead becomes #176d32 and cannot be manually set to #516351

Expected behavior You should be able to set the secondary color to the originally generated color.

Screenshots

https://user-images.githubusercontent.com/10838153/164592716-e418c527-1e3b-4b5a-a07c-0bf3b566d1be.mp4

Desktop:

jwill commented 2 years ago

Fixed