-
Notifications
You must be signed in to change notification settings - Fork 153
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
draft: Sarka/playroom snippets #4583
base: devin/1736720770-playroom-setup
Are you sure you want to change the base?
Conversation
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.
Key Issues
The children
prop is being used as a function without type checking, which can lead to runtime errors if non-function React nodes are passed.
Storybook staging is available at https://kiwicom-orbit-sarka-playroom-snippets.surge.sh |
Size Change: +2 B (0%) Total Size: 459 kB
ℹ️ View Unchanged
|
Deploying orbit with Cloudflare Pages
|
|
||
const loading = `<Loading loading text="Please wait, content is loading..." type="pageLoader" />`; | ||
|
||
const navigationBar = ` |
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.
This should be on Layouts file, imo
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.
yeah, I was thinking about it as well. PR is just a draft
for now.
id="navigation-menu-id" | ||
// onHide={function()} | ||
// onMenuOpen={function()} | ||
// onShow={function()} | ||
openTitle="Open navigation menu" |
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.
We can delete all these lines, keep it simple
</Popover> | ||
`; | ||
|
||
const radio = `<Radio label="Label" name="Name" tabIndex={0} value="value" />`; |
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.
const radio = `<Radio label="Label" name="Name" tabIndex={0} value="value" />`; | |
const radio = `<Radio label="Label" name="Name" value="value" />`; |
spacing="100" | ||
> | ||
<ButtonLink | ||
aria-label="Favourites" |
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.
No need to have aria-label here
icon={<Icons.Accommodation />} | ||
role="list" | ||
selectable | ||
tabIndex={0} |
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.
Why this tabIndex? Same for the below one
<ListItem> | ||
24,000 locations{' '} | ||
<TextLink href="#"> | ||
around | ||
</TextLink> | ||
{' '}the globe | ||
</ListItem> |
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.
We can keep it much simpler by just having some Text, no need for a link or whatever
10ec884
to
46880f0
Compare
This Pull Request meets the following criteria:
For new components:
d.ts
files and are exported inindex.d.ts
✨
Description by Callstackai
This PR introduces new components and snippets for the playroom, including various UI elements like LinkList, List, ListChoice, Loading, NotificationBadge, Pagination, Popover, Radio, Seat, and NavigationBar.
Diagrams of code changes
Files Changed