-
Notifications
You must be signed in to change notification settings - Fork 20
feat: upgrade storybook #880
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
base: v4
Are you sure you want to change the base?
Conversation
Storybook Preview: https://615abff875b8f5004aa277ac-cqjomtlojn.chromatic.com/ |
2bb0360
to
da9225a
Compare
98e332e
to
9281e5e
Compare
docs: { | ||
source: { | ||
code: ` | ||
const customActionGroup = ( | ||
const CustomActionGroup = ( |
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.
storybook plugin dictates that PascalCase should be used
@@ -87,7 +87,7 @@ export const ComboboxMultiSelect = ({ | |||
}, [isSearchEmpty, options]); | |||
|
|||
return ( | |||
<div style={{ maxWidth: '500px' }}> | |||
<div style={{ maxWidth: 500 }}> |
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.
i need to use non-unit number else it will have problem rendering this storybook
@@ -76,13 +77,14 @@ export const ActivatorSelect = ({ | |||
if (hasSelectedValues) { | |||
return ( | |||
<TagsContainer> | |||
<StyledTag | |||
<Tag | |||
style={{ width: 28, marginRight: space8 }} |
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.
somehow it will have error rendering this page if we use styled component of Tag
in this page
so i have to not use styled component instead assign a style like the above to the tag
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.
Hmmm can we investigate this more? I don't think we should update the implementations to cater storybook upgrade
height: 28px; | ||
margin-right: ${space8}; | ||
`; | ||
// export const StyledTag = styled(Tag)` |
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.
keeping this because of the above
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.
same comment as above
@@ -17,8 +17,8 @@ Interactive.args = { | |||
label: 'Description', | |||
}; | |||
|
|||
export const removeFloatingLabelIsTrue = Template.bind({}); | |||
removeFloatingLabelIsTrue.args = { | |||
export const RemoveFloatingLabelIsTrue = Template.bind({}); |
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.
storybook plugin dictates that PascalCase should be used
No description provided.