Skip to content

Patch legend prop naSpacing#135

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

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

Conversation

benkates
Copy link
Contributor

@benkatesbenkates commented Feb 24, 2025

What's in this pull request

  • Bug fix

Description

naSpacing prop change from type string to numeric

Before submitting, please check that you've

  • Added any changes in this PR to the CHANGELOG.mdNext section
Copy link
Contributor

@mitchthorsonmitchthorson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, clearly someone was moving too quickly when they put this in there and did not properly update the type annotation after copy/paste. One small additional tweak to complete the job in comment.

@@ -156,7 +156,7 @@

/**
* Optional amount of spacing in pixels for NA swatch and label
* @type { string } [naLabel = "NA"]
* @type { number } [naLabel = "NA"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go ahead and fix the default value part of the JSDOC while we're at it?

* @type { number} [naSpacing = 16] 
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
@benkates@mitchthorson
close