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

Fixed undefined themes causing a runtime error. #213

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

carloskelly13
Copy link
Contributor

Addresses #212

The spread order of the internal highlight component was overriding the theme provided by props. This fixes the bug where not providing a theme (and falling back to the internal one) will work correctly.

How to test:

  • Build the library and run the /demo project
  • Remove active prop theme from <Highlight /> or pass in undefined
  • See that it still works

@carloskelly13 carloskelly13 merged commit 85212b6 into master Jun 8, 2023
@carloskelly13 carloskelly13 deleted the fix/child-prop-spreading branch June 8, 2023 13:27
This was referenced Jun 8, 2023
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.

2 participants