Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(Divider): misusage of the variables for the default and secondary type #234

Merged
merged 3 commits into from
Sep 17, 2018

Conversation

mnajdova
Copy link
Contributor

@mnajdova mnajdova commented Sep 14, 2018

Divider

The usage of the typeSecondaryXXX and defaultXXX variables was wrong, which produces bug in the usage of the variables.

Reproduce bug

Use the divider in the following manner:

<Divider type='secondary' variables={typeSecondaryColor: 'black'} content='Some text' />

Expected behavior

The color of the Divider should be changed to black

Actual behavior

The color is not changed as this variables is used for the default type of the Divider, not the secondary.

Addition

Also the defaultColor, and defaultBackgroundColor are changed to color and backgroundColor.

manajdov added 2 commits September 14, 2018 17:27
-renamed default to just color and backgroundColor props
@mnajdova mnajdova merged commit 0ef2298 into master Sep 17, 2018
@kuzhelov kuzhelov deleted the fix/divider-variables-usage branch November 19, 2018 15:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🧰 fix Introduces fix for broken behavior. 🚀 ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants