MetaCell / MetaCell/geppetto-meta

Update backgroundColor prop type on Canvas component to allow strings

Open
#387 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
JavaScript
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

String type seems to be supported by the canvas but that is not specified in the proptypes.

Warning: Failed prop type: Invalid prop `backgroundColor` of type `string` supplied to `Canvas`, expected `number`.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Find the Canvas component and its propTypes declaration, then inspect how backgroundColor is consumed. Update the declared type to match the supported string value and verify that the reported prop-type warning no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.