Skip to content

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

Open
wants to merge 1 commit into
base: v4
Choose a base branch
from
Open

feat: upgrade storybook #880

wants to merge 1 commit into from

Conversation

finalight
Copy link
Contributor

No description provided.

@finalight finalight requested a review from chiahou as a code owner July 11, 2023 10:48
@finalight finalight self-assigned this Jul 11, 2023
@github-actions
Copy link

github-actions bot commented Jul 11, 2023

@finalight finalight force-pushed the feature/upgrade-storybook branch from 2bb0360 to da9225a Compare July 11, 2023 13:48
@finalight finalight force-pushed the feature/upgrade-storybook branch from 98e332e to 9281e5e Compare July 12, 2023 01:15
docs: {
source: {
code: `
const customActionGroup = (
const CustomActionGroup = (
Copy link
Contributor Author

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 }}>
Copy link
Contributor Author

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 }}
Copy link
Contributor Author

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

Copy link
Contributor

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)`
Copy link
Contributor Author

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

Copy link
Contributor

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({});
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants