Skip to content

feat(ui5-shellbar): branding slot introduced #11320

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

yanaminkova
Copy link
Member

The branding slot has been introduced to the ui5-shellbar component.
Additionally, a new component called ui5-shellbar-branding has been added. This component combines a logo and a title, with the ability to open links. Its primary purpose is to be used within the branding slot, replacing the default primary title and logo of the ui5-shellbar.

The branding slot and its content take higher priority. As a result, if both the branding and the primary title + logo slot are used, only the ui5-shellbar-branding will be displayed.

@yanaminkova yanaminkova marked this pull request as draft April 14, 2025 12:08
@yanaminkova yanaminkova marked this pull request as ready for review April 15, 2025 11:10
@yanaminkova yanaminkova marked this pull request as draft April 16, 2025 08:45
@yanaminkova yanaminkova marked this pull request as ready for review April 28, 2025 07:35
@dobrinyonkov
Copy link
Contributor

Already looks good, just a few stuff to talk about:

  • dedicated ShellBarBranding.cy.tsx file for the branding related tests?
  • also, more tests for the ShellBarBranding logic like properties, acc, slots, ect?
  • update all samples where shellbar is used with the new slot?

I know we talked to have the "primaryTitle/brandingTitle" as a slot, but now I'm rethinking, what if someone wants to have custom title later on, perhaps it could be better to "reserve" the slot for that and use a property now. We can have a call about this and decide.

FYI, we decided to go with the "branding" name, so ui5-shellbar-branding and branding slot are OK.

* The `ui5-shellbar-branding` component is intended to be placed inside this slot.
* Content placed here takes precedence over the `primaryTitle` property and the `logo` content slot.
*
* @since 2.11.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@since 2.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants