Skip to content

feat(index.js): export the layout helper so consumers can use layout.is('mobile') #539

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

Merged
merged 1 commit into from
Aug 21, 2018

Conversation

mturley
Copy link
Collaborator

@mturley mturley commented Aug 20, 2018

affects: patternfly-react

What:

This layout helper is used internally for the default stateful behavior of VerticalNav.
It would be useful to expose for consumers who want to override parts of that state.

Link to Storybook:

Not relevant (no changes will be apparent in Storybook)

Additional issues:

@priley86 , this is necessary for part of the fix I was writing for patternfly/patternfly-react-demo-app#36 (#525). In order to lift showMobileNav state out, I want to use layout.is('mobile') and layout.addChangeListener() in the demo app, without having to pull in BreakJS directly.

…is('mobile')

affects: patternfly-react

This layout helper is used internally for the default stateful behavior of VerticalNav.
It would be
useful to expose for consumers who want to override parts of that state.
Copy link
Member

@priley86 priley86 left a comment

Choose a reason for hiding this comment

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

works for me! thanks @mturley

@jeff-phillips-18 jeff-phillips-18 merged commit 9578183 into patternfly:master Aug 21, 2018
@mturley mturley deleted the export-layout branch August 29, 2018 23:57
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.

3 participants