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

Update Steps #301

Merged
merged 4 commits into from
Sep 19, 2017
Merged

Update Steps #301

merged 4 commits into from
Sep 19, 2017

Conversation

gthomas-appfolio
Copy link
Contributor

@gthomas-appfolio gthomas-appfolio commented Sep 16, 2017

This updates the Step component to add responsive labels, and ability to force the corresponding collapsed or uncollapsed labels. Showing collapsed:

screen shot 2017-09-15 at 11 40 00 pm

This also removes 3 hardcoded colors in lieu of using bootstrap text-primary and text-success classes for better theming

- Add  responsive labels
- Add `collapse` props to force show or hide equivalent responsive
labels
- Add unit tests
Now uses `currentColor` and `.text-success` for theming
Copy link
Contributor

@phwebi phwebi left a comment

Choose a reason for hiding this comment

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

Looks good!

);
};

Steps.propTypes = {
collapse: PropTypes.bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

should we give collapse a default value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for noticing, Paulus and I discussed that we could default to responsive behavior (collapse on < sm) if this prop is not present. True or false would force collapse or expanded labels respectively.

);
};

Steps.propTypes = {
collapse: PropTypes.bool,
complete: PropTypes.bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason why complete and step aren't required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Complete is only required if done, but good point on step... maybe that should required. Thanks

@gthomas-appfolio gthomas-appfolio merged commit 5cb5c39 into master Sep 19, 2017
@gthomas-appfolio gthomas-appfolio deleted the updateSteps branch September 19, 2017 21:46
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