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
HTML5 Icon in Storybook #7711
Comments
Try replacing the contents of the jupyterlab/packages/ui-components/stories/iconreact.stories.tsx Lines 20 to 24 in fbaf591
with: <div className={'foobar'} style={{alignItems: 'center', display: 'flex', height: '300px', width: '300px'}}>
<DefaultIconReact name={'html5'} height={'200px'} width={'200px'} center={true} />
</div> and you should see the html5 icon show up. You can even do it while storybook is running. The reason why the html5 icon appears strange initially is that In any case, the use of |
Thx @telamonian. I let you update the stories as part of #7700 and will close this issue when it will be done. Regarding enforcing the height and width, I would have expected all icons shipped by jupyterlab to avoid the same size, let's say fitting eg in a 100px square box. Having do define the size in an enclosing div upon via the props of the react component is not that appealing. Will this still be needed after #7700? I would love to have as props a |
Description
Reproduce
yarn storybook
in the ui-components packageHTML5 Icon on Chrome is not displayed
HTML5 Icon on Firefox is displayed
Expected behavior
Chrome should display the icon as Firefox is doing.
Context
The text was updated successfully, but these errors were encountered: