-
Notifications
You must be signed in to change notification settings - Fork 174
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
Icons in navigation nodes #306
Icons in navigation nodes #306
Conversation
…cons-in-navigation-nodes # Conflicts: # core/src/navigation/LeftNav.html
docs/navigation-configuration.md
Outdated
@@ -247,6 +247,7 @@ The node parameters are as follows: | |||
- **loadingIndicator.enabled** shows a loading indicator when switching between micro front-ends. If you have a fast micro front-end, you can disable this feature to prevent flickering of the loading indicator. This parameter is enabled by default. | |||
- **loadingIndicator.hideAutomatically** disables the automatic hiding of the loading indicator once the micro front-end is loaded. It is only considered if the loading indicator is enabled. It does not apply if the loading indicator is activated manually with the `LuigiClient.uxManager().showLoadingIndicator()` function. If the loading indicator is enabled and automatic hiding is disabled, use `LuigiClient.uxManager().hideLoadingIndicator()` to hide it manually in your micro front-end during the startup. This parameter is enabled by default. | |||
- **viewGroup** defines a group of views in the same domain sharing a common security context. This improves performance through reusing the frame. Use **viewGroup** only for the views that use path routing internally. | |||
- **icon** is the name if an icon from [OpenUI](https://openui5.hana.ondemand.com/1.40.10/iconExplorer.html) that will be shown next to the Node's label (side navigation) or instead of it (top navigation). |
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.
- **icon** is the name if an icon from [OpenUI](https://openui5.hana.ondemand.com/1.40.10/iconExplorer.html) that will be shown next to the Node's label (side navigation) or instead of it (top navigation). | |
- **icon** is the name if an icon from the [OpenUI](https://openui5.hana.ondemand.com/1.40.10/iconExplorer.html) displayed next to the Node label in the side navigation or instead of the label in the top navigation. |
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.
Additionally: ...is the name of an icon
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.
Just small comments, but overall looks good.
docs/navigation-configuration.md
Outdated
@@ -247,6 +247,7 @@ The node parameters are as follows: | |||
- **loadingIndicator.enabled** shows a loading indicator when switching between micro front-ends. If you have a fast micro front-end, you can disable this feature to prevent flickering of the loading indicator. This parameter is enabled by default. | |||
- **loadingIndicator.hideAutomatically** disables the automatic hiding of the loading indicator once the micro front-end is loaded. It is only considered if the loading indicator is enabled. It does not apply if the loading indicator is activated manually with the `LuigiClient.uxManager().showLoadingIndicator()` function. If the loading indicator is enabled and automatic hiding is disabled, use `LuigiClient.uxManager().hideLoadingIndicator()` to hide it manually in your micro front-end during the startup. This parameter is enabled by default. | |||
- **viewGroup** defines a group of views in the same domain sharing a common security context. This improves performance through reusing the frame. Use **viewGroup** only for the views that use path routing internally. | |||
- **icon** is the name if an icon from [OpenUI](https://openui5.hana.ondemand.com/1.40.10/iconExplorer.html) that will be shown next to the Node's label (side navigation) or instead of it (top navigation). |
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.
Additionally: ...is the name of an icon
cy.get('button[title="Settings"]').should('contain', ''); | ||
}); | ||
|
||
it('Icon instead of label in LeftNav', () => { |
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.
Icon with label in the left nav :)
core/src/navigation/LeftNav.html
Outdated
{node.label} | ||
{#if node.externalLink && node.externalLink.url} | ||
<span class="sap-icon--action sap-icon--s"></span> | ||
<span class="sap-icon--action sap-icon--s external-link"></span> |
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 additional class is not used anywhere
…cons-in-navigation-nodes # Conflicts: # core/src/navigation/TopNav.html
please add support for custom icons loaded from external url in addition to OpenUI5 icons |
👍 |
The icon for the "Keep Selected Example" is confusing, it makes you think that it is some kind of expandable group node; it is just our sample app but still.. |
adapted spacing and icon sizes based on Philipp's input
* Implement icons in left nav * Add e2e tests * Update docu * Add ability to set custom node icons * Implement image icons in side nav groups * Reorganize icon styling & improve nav links alignment * added more icons to the sample config
Description
Changes proposed in this pull request:
icon
property can now be used in Top and Side navigation configurationRelated issue(s)