Skip to content

[octicons-react] Add className to the type definition#271

Merged
jonrohan merged 1 commit intoprimer:release-9.2.0from
pocke:classname
Oct 14, 2019
Merged

[octicons-react] Add className to the type definition#271
jonrohan merged 1 commit intoprimer:release-9.2.0from
pocke:classname

Conversation

@pocke
Copy link
Copy Markdown
Contributor

@pocke pocke commented Jan 3, 2019

Problem

octicons-react's Octicon component receives className as a prop, but the type definition does not include className prop.

export default function Octicon(props) {
const {ariaLabel, children, className, height, icon: Icon, size, verticalAlign, width} = props

Solution

Add className to the type definition.

@jonrohan
Copy link
Copy Markdown
Member

jonrohan commented Jan 8, 2019

Thanks for the PR. I'm gonna let @shawnbot take a look at this one.

Copy link
Copy Markdown
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

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

Looks good to me! The OcticonsProps interface now accurately reflects the props accepted by the Octicon component 👍 Thanks, @pocke 🎉

Copy link
Copy Markdown
Contributor

@shawnbot shawnbot left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@pocke
Copy link
Copy Markdown
Contributor Author

pocke commented Jun 18, 2019

Thank you for reviewing!
Should I do anything for this pull request?

@shawnbot
Copy link
Copy Markdown
Contributor

@pocke nope! @jonrohan, let's include this in the next patch release.

@felixfbecker
Copy link
Copy Markdown

Is this blocked by anything?

@jonrohan jonrohan changed the base branch from master to release-9.2.0 October 14, 2019 23:01
@jonrohan jonrohan mentioned this pull request Oct 14, 2019
4 tasks
@jonrohan jonrohan merged commit 006ec94 into primer:release-9.2.0 Oct 14, 2019
@pocke pocke deleted the classname branch October 15, 2019 02:25
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.

5 participants