Skip to content
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

How to add a vertical line separator and an object status text to the left side, right after the product switcher in shellbar? #10725

Open
1 task done
wei368 opened this issue Jan 30, 2025 · 1 comment
Assignees
Labels
bug This issue is a bug in the code consulting

Comments

@wei368
Copy link

wei368 commented Jan 30, 2025

Bug Description

In UI5, ToolbarSeparator is used as a vertical line separator, and ObjectStatus is utilized for displaying status text. In UI5 Web Components, is there an equivalent component or a recommended approach to achieve similar functionality within the ShellBar component?

Per shellbar document https://sap.github.io/ui5-webcomponents/v1/components/fiori/ShellBar/#slots. The location of each component is controlled by the slot. I could not see a slot to archive this

This UI can be achieved in UI5 but is not currently achievable in UI5 Web Components. can you give some advice? thanks

Image

Affected Component

ShellBar component

Expected Behaviour

we should be able to add vertical line separator, or status text object after the product switcher

Isolated Example

https://sap.github.io/ui5-webcomponents/v1/play/#eyJpbmRleC5odG1sIjp7Im5hbWUiOiJpbmRleC5odG1sIiwiY29udGVudCI6IjwhLS0gcGxheWdyb3VuZC1mb2xkIC0tPlxuPCFET0NUWVBFIGh0bWw-XG48aHRtbCBsYW5nPVwiZW5cIj5cblxuXG5cbjxoZWFkPlxuICAgIFxuICAgIDxzdHlsZT5cbiAgICAgICo6bm90KDpkZWZpbmVkKSB7XG4gICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICB9XG4gICAgPC9zdHlsZT5cblxuICAgIFxuICAgIDxzdHlsZT5cbiAgICAgICo6bm90KDpkZWZpbmVkKSB7XG4gICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICB9XG4gICAgPC9zdHlsZT5cblxuICAgIDxtZXRhIGNoYXJzZXQ9XCJVVEYtOFwiPlxuICAgIDxtZXRhIG5hbWU9XCJ2aWV3cG9ydFwiIGNvbnRlbnQ9XCJ3aWR0aD1kZXZpY2Utd2lkdGgsI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1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzLWZpb3JpL2Rpc3QvU2hlbGxCYXIuanNcIjtcblxuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzLWljb25zL2Rpc3QvbmF2LWJhY2suanNcIjtcbmltcG9ydCBcIkB1aTUvd2ViY29tcG9uZW50cy1pY29ucy9kaXN0L3N5cy1maW5kLmpzXCI7XG5pbXBvcnQgXCJAdWk1L3dlYmNvbXBvbmVudHMtaWNvbnMvZGlzdC9zZXR0aW5ncy5qc1wiO1xuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzLWljb25zL2Rpc3QvZWRpdC5qc1wiO1xuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzLWljb25zL2Rpc3Qvc3lzLWhlbHAuanNcIjtcbmltcG9ydCBcIkB1aTUvd2ViY29tcG9uZW50cy1pY29ucy9kaXN0L2xvZy5qc1wiO1xuXG5jb25zdCBzaGVsbGJhciA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKFwic2hlbGxiYXJcIik7XG5jb25zdCBhY3Rpb25Qb3BvdmVyID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoXCJhY3Rpb24tcG9wb3ZlclwiKTtcblxuc2hlbGxiYXIuYWRkRXZlbnRMaXN0ZW5lcihcInVpNS1wcm9maWxlLWNsaWNrXCIsIChldmVudCkgPT4ge1xuICAgIGFjdGlvblBvcG92ZXIuc2hvd0F0KGV2ZW50LmRldGFpbC50YXJnZXRSZWYpO1xufSk7XG4ifX0

Steps to Reproduce

...

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

1 or 2

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
@wei368 wei368 added the bug This issue is a bug in the code label Jan 30, 2025
@wei368 wei368 changed the title [component name | framework | build | icons | theming | localization | i18n | typescript]: How can I add a vertical line separator and an object status text to the left side, right after the product switcher? Jan 30, 2025
@wei368 wei368 changed the title How can I add a vertical line separator and an object status text to the left side, right after the product switcher? How can to add a vertical line separator and an object status text to the left side, right after the product switcher in shellbar? Jan 31, 2025
@wei368 wei368 changed the title How can to add a vertical line separator and an object status text to the left side, right after the product switcher in shellbar? How to add a vertical line separator and an object status text to the left side, right after the product switcher in shellbar? Jan 31, 2025
@petyabegovska petyabegovska self-assigned this Jan 31, 2025
@petyabegovska
Copy link
Collaborator

Hi @wei368,

This could be implemented with version 2.7.0 of UI5 Web Components Shell bar, see the latest sample: https://sap.github.io/ui5-webcomponents/nightly/components/fiori/ShellBar/#basic-sample, where the new component ui5-shellbar-spacer is used.

The functionality can not be implemented with v1 of Shell bar component: https://sap.github.io/ui5-webcomponents/v1/components/fiori/ShellBar/.

Best regards,
Petya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug in the code consulting
Projects
None yet
Development

No branches or pull requests

2 participants