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

fix(circuit-ui): ColorInput paste and change events #2687

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

matoous
Copy link
Contributor

@matoous matoous commented Sep 17, 2024

Improve ColorInput, specifically:

  • handle default value and value props properly
  • ensure color picker and hex color input are always synchronized
  • handle properly paste events with hex color

@matoous matoous self-assigned this Sep 17, 2024
Copy link

changeset-bot bot commented Sep 17, 2024

🦋 Changeset detected

Latest commit: d8364e0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sumup/circuit-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Sep 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
oss-circuit-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 1:18pm

Copy link

codecov bot commented Sep 17, 2024

Codecov Report

Attention: Patch coverage is 95.45455% with 2 lines in your changes missing coverage. Please review.

Project coverage is 86.73%. Comparing base (9d3ce2e) to head (d8364e0).

Files with missing lines Patch % Lines
...es/circuit-ui/components/ColorInput/ColorInput.tsx 95.45% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2687      +/-   ##
==========================================
+ Coverage   86.63%   86.73%   +0.10%     
==========================================
  Files         210      210              
  Lines       12000    12036      +36     
  Branches     1506     1515       +9     
==========================================
+ Hits        10396    10440      +44     
+ Misses       1551     1543       -8     
  Partials       53       53              
Files with missing lines Coverage Δ
...es/circuit-ui/components/ColorInput/ColorInput.tsx 98.01% <95.45%> (+7.57%) ⬆️

Improve ColorInput, specifically:

- handle default value and value props properly
- ensure color picker and hex color input are always synchronized
- handle properly paste events with hex color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant