primer / prism

A tool for creating and maintaining cohesive, consistent, and accessible color palettes
https://primer.style/prism/
MIT License
667 stars 39 forks source link

New color is not auto-selected #54

Closed lorenzvanherwaarden closed 1 year ago

lorenzvanherwaarden commented 2 years ago

Describe the bug When adding a color to a scale by clicking the "+" button, the current selected color remains selected, instead of the newly created one. This can be annoying as you start editing the color, only later realizing you were editing one you already made earlier.

To Reproduce Steps to reproduce the behavior:

  1. Click any scale
  2. Click the "+" button
  3. Notice the color selection remains the same

Expected behavior Auto-select the latest created color (=latest index).

Screenshots N/A

Environment All