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

DOCSP-6332: Add misc. charts directives #102

Merged
merged 8 commits into from
Aug 6, 2019
Merged

DOCSP-6332: Add misc. charts directives #102

merged 8 commits into from
Aug 6, 2019

Conversation

sophstad
Copy link
Member

[JIRA] [Staging] Regression tested on guides and charts.

  • Change Stitch ID to begin using new Stitch app after failed migration
  • Refactor admonition component to more easily add seealso and example admonitions
  • Make CSSWrapper generic so that it is easy to add a class to any unknown DOM element
  • Add horizontal list (hlist) component
  • Add line block component
  • Fix PropTypes warnings in ListTable component

const { className } = this.props;

/*
* Using findDOMNode() is discouraged in favor of passing refs to children, but we use it here
Copy link
Collaborator

Choose a reason for hiding this comment

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

I thought you're able to use ref hooks for stateless components. Or am I thinking of something else? Just wondering

Copy link
Member Author

Choose a reason for hiding this comment

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

We could use a ref hook to attach a ref to a DOM element within a functional component, but we can't attach a ref to the component itself (source). Good question!

@sophstad sophstad merged commit 8675c00 into master Aug 6, 2019
@sophstad sophstad deleted the DOCSP-6332 branch August 6, 2019 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants