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

Add typings for EuiBadge #1034

Merged
merged 5 commits into from
Jul 20, 2018
Merged

Conversation

justinkambic
Copy link
Contributor

Changes

Add typings for the EuiBadge component.

Testing

Before these changes:
screen shot 2018-07-19 at 12 33 02 pm

Export the changes from my local node_modules:
screen shot 2018-07-19 at 12 34 29 pm

EuiBadge now a recognized type:
screen shot 2018-07-19 at 12 54 01 pm

}

export const EuiBadge: SFC<
CommonProps & HTMLAttributes<HTMLSpanElement> & EuiBadgeProps
Copy link
Contributor

Choose a reason for hiding this comment

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

if onClick prop is passed then a button is rendered around the span, this should intersect HTMLSpanElement's attributes with HTMLButtonElement for completeness.

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @justinkambic !

@justinkambic justinkambic merged commit f3a5ec5 into elastic:master Jul 20, 2018
@justinkambic justinkambic deleted the euibadge-typings branch July 20, 2018 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants