Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

fix(Highlight): Fix undefined class being assigned to element #572

Merged
merged 2 commits into from
Nov 1, 2018

Conversation

kosanna
Copy link
Contributor

@kosanna kosanna commented Nov 1, 2018

Due to the [styles[tone]]: true defaulting tone to TONE.NEUTRAL, by default we always get undefined class being assigned to the element.

This is caused by the fact that .neutral class does not exist in the stylesheet.

Tone is NOT a required prop from the consumer's perspective and also defaulting is a) doing nothing, b) introducing incorrect behaviour of the component.

@kosanna
Copy link
Contributor Author

kosanna commented Nov 1, 2018

Thank you nice people!

@kosanna kosanna merged commit 1640d89 into master Nov 1, 2018
@kosanna kosanna deleted the cleanup-highlight branch November 1, 2018 22:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants