-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(ui): adds HeaderContainer component #607
Conversation
🦋 Changeset detectedLatest commit: 4b18052 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
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.
Good Job! Please take alook at my comments
packages/ui-components/src/components/AppShell/AppShell.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/AppShell/AppShell.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/AppShell/AppShell.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/HeaderContainer/HeaderContainer.component.tsx
Show resolved
Hide resolved
Co-authored-by: Guoda <[email protected]>
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.
Really nice to have a component directly in TS! Super cool. 🚀
Just made some suggestions below. Feel free to only fix the blocking and just consider the rest. 💪 Thank You so much.
packages/ui-components/src/components/AppShell/AppShell.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/AppShell/AppShell.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/AppShell/AppShell.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/HeaderContainer/HeaderContainer.stories.tsx
Show resolved
Hide resolved
packages/ui-components/src/components/HeaderContainer/HeaderContainer.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/HeaderContainer/HeaderContainer.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/HeaderContainer/HeaderContainer.component.tsx
Show resolved
Hide resolved
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.
My brain! 🤯 I meant to request changes above.
…ent.tsx Co-authored-by: Guoda <[email protected]>
…ent.tsx Co-authored-by: Guoda <[email protected]>
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 have a question of unnecessary check on a stirng.Maybe we could discuss it.
packages/ui-components/src/components/AppShell/AppShell.component.tsx
Outdated
Show resolved
Hide resolved
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.
Looks great, thanks for the improvements!!! And sorry for the delay due to training. 🙏
Last few improvements. Last type related one would be the most important.
Otherwise, ready to approve. 🚀
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.
Looks good! Thank You! 💪
Summary
To enable to behave like , a container component was created: , which is placed in the . The result is that is now also sticky and always remains at the top when scrolling. In addition, the width of both components behaves in the same way as the content. This means that they are now also bordered and centered in width.
Changes Made
Related Issues
There is no ticket
Screenshots (if applicable)
Testing Instructions
The behavior can only be viewed in the example app
npm i
npm run clean:cache
npm run pkg @cloudoperators/juno-app-example
Component in Storybook
npm i
npm run storybook -w @cloudoperators/juno-ui-components
Checklist