-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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(web): add v2 components for docs #5975
Conversation
@@ -81,6 +97,10 @@ export const Docs = ({ code = '', description = '', title = '', isLoading, child | |||
} | |||
|
|||
if (Component === null) { | |||
if (isChildDocs) { | |||
return <Text>We could not load this part of the documentation for you. Please try again.</Text>; |
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.
In what scenario will this happen? And what will change if the user will try again?
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.
If the docs could not be fetched from github for some reason. It could if it is github that is the issue. For me it is more a being nice to the user thing.
9ab8345
to
9f2a916
Compare
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.
Thanks for the updates, David! Left some feedback for things to help future maintainers
<Flex justify="space-between" align="center"> | ||
<TitleH1 | ||
className={css({ | ||
width: '99%', |
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.
❓ question: Why do we need this?
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.
Because otherwise the floating close icon and external link will be hiding part of the title
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.
Hmm, then there's probably a solution that may address it more directly that would be better to aim for
apps/web/src/components/layout/components/v2/BridgeUpdateModal.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.
Thanks for the updates!
<Flex justify="space-between" align="center"> | ||
<TitleH1 | ||
className={css({ | ||
width: '99%', |
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.
Hmm, then there's probably a solution that may address it more directly that would be better to aim for
75ca517
to
e58726d
Compare
bc79dc0
to
317f407
Compare
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.
Awesome work! 🚀
@davidsoderberg can we get this merged? |
No description provided.