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

Set viewMode to story when calling selectStory from non story pages #11317

Merged
merged 1 commit into from
Jun 25, 2020

Conversation

kylesuss
Copy link
Contributor

Issue: When on either of the settings pages (About/Keyboard shortcuts) & navigating back to a story from the sidebar, the viewMode remained as "settings", leaving you with this:

Screen Shot 2020-06-25 at 11 54 10 AM

What I did

Updated the logic to set the viewMode to "story" when calling api.selectStory and the viewMode is not already "docs" or
"story".

How to test

  • Is this testable with Jest or Chromatic screenshots? No
  • Does this need a new example in the kitchen sink apps? No
  • Does this need an update to the documentation? No

There is an automated test in this PR for the behavior.

@kylesuss kylesuss added the bug label Jun 25, 2020
@ndelangen ndelangen self-assigned this Jun 25, 2020
@ndelangen ndelangen requested review from shilman, tmeasday and ndelangen and removed request for shilman and tmeasday June 25, 2020 17:57
@ndelangen ndelangen added this to the 6.0 milestone Jun 25, 2020
@kylesuss kylesuss merged commit b1a1e2f into next Jun 25, 2020
@kylesuss kylesuss deleted the fix-settings-nav branch June 25, 2020 19:01
@shilman shilman added the ui label Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants