V15: Allows certain adjustments of the logo#18499
Merged
leekelleher merged 16 commits intov15/devfrom Mar 3, 2025
Merged
Conversation
leekelleher
reviewed
Mar 3, 2025
leekelleher
approved these changes
Mar 3, 2025
This was referenced Sep 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
src/Umbraco.Web.UI.Clientandsrc/Umbraco.Web.UI.Logindirectories, focusing on theapp-logo.element.ts,backoffice-header-logo.element.ts, andauth-layout.element.tsfiles. The changes enhance the flexibility and customization of logo elements and improve code consistency.This should resolve #18424
Changes
Enhancements to Logo Elements:
This pull request introduces support for an alternative backoffice logo, along with various updates to the logo handling in the application. The changes span across multiple files, including controllers, configurations, UI components, and mock handlers.
Addition of Alternative Backoffice Logo:
src/Umbraco.Cms.Api.Management/Controllers/Security/BackOfficeGraphicsController.cs: Added a new routeLogoAlternativeRouteNameand a corresponding methodLogoAlternativeto handle requests for the alternative backoffice logo. [1] [2]src/Umbraco.Core/Configuration/Models/ContentSettings.cs: Introduced a new propertyBackOfficeLogoAlternativeto store the path to the alternative backoffice logo. [1] [2]Updates to UI Components:
src/Umbraco.Web.UI.Client/src/apps/app/app-logo.element.ts: Enhanced theUmbAppLogoElementcomponent to support loading attributes, logo types, and theme overrides. Updated the rendering logic to select the appropriate logo based on the theme and logo type. [1] [2]src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-header-logo.element.ts: Modified theUmbBackofficeHeaderLogoElementto use the updatedUmbAppLogoElementwith the new properties and removed redundant context consumption. [1] [2] [3] [4] [5]src/Umbraco.Web.UI.Login/src/components/layouts/auth-layout.element.ts: Added CSS properties for customizing the logo display and updated the rendering logic for the logo images. [1] [2] [3] [4] [5]