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

Components: Minor update checking color in Button #12800

Merged
merged 1 commit into from Oct 18, 2020

Conversation

Connormiha
Copy link
Contributor

What I did

Just minor refactoring of checking color in <Button />.

Comment on lines +88 to +91
} else if (secondary) {
color = theme.color.secondary;
} else if (primary) {
color = theme.color.primary;
Copy link
Member

Choose a reason for hiding this comment

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

is there a reason why secondary is above primary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make the assignment more explicit. Without reassign on next line.

@shilman shilman added the maintenance User-facing maintenance tasks label Oct 18, 2020
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM

@shilman shilman changed the title Minor update checking color in Button Components: Minor update checking color in Button Oct 18, 2020
@shilman shilman added this to the 6.1 core milestone Oct 18, 2020
@shilman shilman merged commit 0cb78b9 into storybookjs:next Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
components maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants