-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Fix content of Panel rendered wrong at Docs-page #7327
Conversation
This pull request is automatically deployed with Now. Latest deployment for this branch: https://monorepo-git-fork-lonyele-fix-panel-docs-page.storybook.now.sh |
@lonyele what does this fix? can you attach a screenshot? |
@shilman Please take a look, I've edited some content for more info |
Thanks @lonyele! Are you able to access the chromatic build? It looks like one of the CSS changes might have broken the keyboard shortcuts screen? |
@shilman hm... I'm not sure. On my local build, it looks fine on Windows and Ubuntu. Also on now deployment. I checked the React components that are used for the shortcuts page such as this, but it doesn't look like a problem. I think my code change from this PR shouldn't affect other things except the |
@ndelangen can you take a look? |
I'm fine with the code change, I think it's low impact. I did warn inline-rendering of components would have a cascade effects of tweaks to internal components. You know I'm not a fan of this, but I have no reason to deny this change. I kicked off another CI run, to verify the chromatic diff wasn't a fluke, i suspect it was, since when I look at the page on now, i see the correct layout, not what's on chromatic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Please feel free to say anything to me if you guys don't satisfy with the implementation. I have a thirst for feedbacks... since I'm a self-taught programmer(I'll try to meet your satisfaction if I can!) |
Issue:
What I did
Change the
absolute
value passed to<Tabs />
to falseMore Info
On
Canvas
viewMode, there is no problem, but only on the docs-page.I think It can also be found this bug on the deployed one
It used to be the first screenshot below
Now it looks like the second screenshot below
I wasn't sure if it is only not working for me or my implementaion on fixing this problem is breaking other parts of component usage, i made this PR so that I can take a look at how chromatic sees the changes(That's why I put WIP on the title)
First attempt makes the
Clear
button to the top when there is not content. So big noSecond attempt is to pass
absolute
to the<Tabs />
component so that in general it is same as before, but its value isfalse
only on the docs-pageI feel this can be a little bit monkey patching, but I couldn't change the logic itself because I wasn't sure why this part was implemented [in this way] (https://github.com/storybookjs/storybook/blob/next/lib/components/src/tabs/tabs.tsx#L65-L87)
btw on
<Tabs />
story. Docs-page also looks good, but here<Tabs />
is wrapped by<TabWrapper>
so it fixes theposition
problem?If this one looks ok, I'll make an issue and clean up little bit for the history's sake
How to test
If your answer is yes to any of these, please make sure to include it in your PR.