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

UI: Fix TooltipLinkList not scrollable #7865

Merged
merged 1 commit into from
Aug 26, 2019
Merged

UI: Fix TooltipLinkList not scrollable #7865

merged 1 commit into from
Aug 26, 2019

Conversation

lucasterra
Copy link
Contributor

@lucasterra lucasterra commented Aug 26, 2019

Issue: #6150

TooltipLinkList was not scrollable. This was a problem for plugins with many many options. i.e.: a i18n plugin. See screenshots below:

Before:
Screenshot 2019-08-26 at 16 48 59

After:
Screenshot 2019-08-26 at 16 49 30

What I did

I added a maxHeight of 10.5 items (the half is to make it obvious that there are more items if you scroll down), and made overflow-y: auto.

How to test

  • Try making a plugin with many many options.

@vercel
Copy link

vercel bot commented Aug 26, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

@shilman shilman changed the title Fix: TooltipLinkList not scrollable UI: Fix TooltipLinkList not scrollable Aug 26, 2019
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 and tested!

@shilman shilman added this to the 5.2.0 milestone Aug 26, 2019
@shilman shilman merged commit 03528c0 into storybookjs:next Aug 26, 2019
@lucasterra lucasterra deleted the fix-tooltip-overflow branch August 26, 2019 15:34
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.

2 participants