adobe / leonardo

Generate colors based on a desired contrast ratio

Home Page:http://www.leonardocolor.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bulk import when comma + space separation

NateBaldwinDesign opened this issue · comments

Description

When importing bulk colors with a comma and space delimitation, the last color in the array is given an extra space before the color value.

This input into the bulk import:
ff00ff, ff0000, 0000ff

will assign # to all colors, and the final color will output as:
# 0000ff

This breaks the function and returns only the valid colors into the input.

Steps to reproduce

  1. Go to http://localhost:1234/
  2. Click on bulk import and add "ff00ff, ff0000, 0000ff"
  3. Observe #ff00ff and #ff0000 are added to the UI, the final color is not, and the dialog remains open

Expected behavior

All colors import and dialog dismissed

Screenshots

Environment

  • Browser(s) and OS(s):

Additional context