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

Support classname for legend #223

Merged
merged 3 commits into from Jan 12, 2017
Merged

Support classname for legend #223

merged 3 commits into from Jan 12, 2017

Conversation

roderickhsiao
Copy link
Contributor

Will be good to support class name append for legend

@@ -57,11 +57,11 @@ function fillItemsWithDefaults(items) {
}

function DiscreteColorLegend({items: initialItems, width, height,
onItemClick, orientation}) {
onItemClick, orientation, className = ''}) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll need to add this into the PropTypes as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure thing

Copy link
Contributor

@mcnuttandrew mcnuttandrew left a comment

Choose a reason for hiding this comment

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

Lgtm

@mcnuttandrew mcnuttandrew merged commit d670898 into uber:master Jan 12, 2017
@roderickhsiao roderickhsiao deleted the patch-2 branch January 12, 2017 07:18
ayarcohaila pushed a commit to ayarcohaila/react-vis that referenced this pull request Jun 30, 2021
* Support classname for legend

* adding PropTypes

* Use default props instead
ayarcohaila added a commit to ayarcohaila/react-vis that referenced this pull request May 30, 2023
* Support classname for legend

* adding PropTypes

* Use default props instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants