Skip to content

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
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


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

<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


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.

3 participants