-
Notifications
You must be signed in to change notification settings - Fork 39
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
website: Update breadcrumbs documentation & demos #957
Conversation
FlyersPh9
commented
Jan 5, 2023
•
edited
Loading
edited
- Add breadcrumbs demos for the different sections on the page.
- Update documentation, include adding hyperlinks to other mentioned components.
|
||
### First truncated element | ||
Show as many previously accessed folders as possible so that users can quickly go back to an upper level. If all breadcrumb items can be shown without horizontal scrolling, show them all. Try to keep the first level - the root folder - always accessible. Therefore when you start truncating element start with the secondly accessed folder and work your way from there. |
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.
The last sentence here might need some commas. I was a bit confused what message the sentence was trying to convey.
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.
Ive tried to make it more clear, let me know what you think.
<Button key={1} onClick={() => {}}> | ||
My files | ||
</Button> | ||
<Button key={2} onClick={() => {}}> |
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.
Are all the empty onClick
s needed?
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.
It would appear they are not needed, removed.
<div | ||
style={{ | ||
border: '1px solid pink', | ||
maxWidth: 450, |
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.
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.
What width works on your screen? Being on macOS I can never see those thicker scrollbars that Windows has.
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.
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 was able to recreate this error. In collaboration with Jon, I fixed it by changing the maxWidth
in Breadcrumbs.extremetruncation.tsx
from 450 to 425.
…om/iTwin/iTwinUI into jon/documentation-site-breadcrumbs