-
Notifications
You must be signed in to change notification settings - Fork 13
docs(vertical-navigation): update ux docs #1370
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
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @panch1739, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request updates the user experience documentation for the vertical navigation component. The changes primarily focus on refining the guidelines for badge implementation to align with a new design, ensuring clarity on their display behavior in various states, particularly within submenus and when the navigation is collapsed. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This PR updates the documentation for badges within the vertical navigation component. The added details about behavior in submenus and in the collapsed state are a good improvement. I've added one comment to resolve a contradiction in the new text for better clarity. Also, note that while the PR description mentions updated images, no image files were changed in this PR, which might lead to an inconsistency between the text and the visuals.
|
Documentation. Coverage Reports: |
hbxes
left a comment
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.
All good, just one question about the search in the collapsed version, it looks like not active or disabled.
docs/components/layout-navigation/images/vertical-navigation-collapsed.png
Show resolved
Hide resolved
| Items can also include [badges](../status-notifications/badges.md) to provide users with quick, at-a-glance information. | ||
| For submenus, badges are used only on child items. The parent item does not display a badge, except in the collapsed state. | ||
|
|
||
| When collapsed, numeric badges are shown in a compact form. |
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.
@panch1739 Just displaying numeric badges looks in the accessible tree unwanted, I think when we use numeric badges should should of a descriptive visual hidden text to explain the context. See for example here: https://github.com/siemens/element/pull/1226/changes#diff-eb217afa9fb35531450a135c4f0c0e637714ccac39288ae3a1008c9ca6ea587aR15
Just a number at the end of the link seems somehow random. What do you think?
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.
@spliffone well yes, if the number is announced alone, it would be quite random to just hear the number 5...but badges in this case are contextual indicators. Their value should be announced together with the navigation label, as that already provides the context.
For example, in the screenshot:
- If the number has an explicit meaning, that meaning must be included in the accessible name. E.g.,
Test coverage, 5 issues - If the number is a generic count, announcing the label followed by the number is sufficient. E.g.,
Test coverage, 5
Does this help?
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 explanation!
@spike-rabbit From my knowledge, we only support the case number is a generic count (Test coverage 5) and I miss the semantic meaning. Especially in cases where a navbar item has a general name e.g. Configuration we should provide the option for an descriptive text of the number badge. Or we solve it by adding tooltips with the information.
This PR updates the images of the vertical navigation for new design.