storybook icon indicating copy to clipboard operation
storybook copied to clipboard

Custom tabs don't have access to full screen toggle buttons

Open micahgodbolt opened this issue 4 years ago • 8 comments

Describe the bug Canvas tab has a button to go, and return from full screen (among others). Switching to docs or custom tabs don't give you those tabs (nor do I see a way to add them).

This leaves a use possibly sitting in the docs tab not able to return from full screen mode.

To Reproduce Steps to reproduce the behavior:

  1. Go to a storybook page
  2. Click on 'Full Screen button (or type F)'
  3. Click on Docs tab
  4. Note that you can't escape full screen without either knowing the keyboard shortcut or returning to Canvas tab

Expected behavior User can enter/exit full screen from any page tabs

Screenshots image

image

micahgodbolt avatar Oct 19 '20 22:10 micahgodbolt

What would be the best solution for this?

Add the toggle fullscreen button in the docs tab? Programmatically exit fullscreen when the user navigates to the Docs page?

Any other suggestions? 🙂

Tomastomaslol avatar Oct 21 '20 10:10 Tomastomaslol

Short term I'd suggest those top 3 icons show up on all tabs as we created a custom tab that would certainly benefit from full screen mode as well (so exiting full screen sounds annoying).

Longer term, it'd be nice to customize that whole icon bar, using default buttons and/or adding custom buttons.

micahgodbolt avatar Oct 21 '20 15:10 micahgodbolt

Gadzooks!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-alpha.28 containing PR #12861 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb upgrade --prerelease

Closing this issue. Please re-open if you think there's still more to do.

shilman avatar Oct 23 '20 07:10 shilman

@shilman ya'll are mind reader!

micahgodbolt avatar Oct 23 '20 15:10 micahgodbolt

@shilman oh shoot....what about custom tabs? I'm going to assuming that story/docs are the only tabs they will show in right now.

micahgodbolt avatar Oct 23 '20 15:10 micahgodbolt

@shilman i changed the title to specifically point out 'custom' tabs....can we re-open this?

micahgodbolt avatar Oct 23 '20 15:10 micahgodbolt

Can confirm, installed prerelease and docs has the close button, but our custom tab does not tabs

micahgodbolt avatar Oct 23 '20 15:10 micahgodbolt

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

stale[bot] avatar Dec 25 '20 21:12 stale[bot]