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 DOM attributes to FontAwesomeIconProps to Typescript definitions #283

Merged
merged 1 commit into from
Oct 19, 2019
Merged

Conversation

baelec
Copy link
Contributor

@baelec baelec commented Sep 20, 2019

This allows the use of event handlers such as onClick, etc. If we want to limit ourselves to fairly recent versions of TS (or code our own which is fairly simple), we can use the omit type to omit the few types we don't need.

I didn't use SVGElement props as I'm not sure if that's a level of access we want to give but I can if desired.

@baelec
Copy link
Contributor Author

baelec commented Sep 20, 2019

Looking at previous PRs, I changed it to SVGSVGElement. Additionally, I added a backwards compatible Omit type to omit children and mask properties.

@baelec
Copy link
Contributor Author

baelec commented Oct 7, 2019

If there is anything else needed to get this merged in feel free to let me know.

@dangayle
Copy link

@robmadole can you please take a look at this PR?

Fixes:

.gitignore Outdated Show resolved Hide resolved
Converted HTMLElement to SVGSVGElement and added backwards compatible Omit type
@baelec
Copy link
Contributor Author

baelec commented Oct 17, 2019

Rebased and squashed commits.

@robmadole
Copy link
Member

Thanks @baelec this looks fine to me. Going to get this released now.

@robmadole robmadole merged commit b63b1ed into FortAwesome:master Oct 19, 2019
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

4 participants