From 45b87c278dc66d0cd55ea2fd625f4a543589ce52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 5 Sep 2025 08:26:55 +0200 Subject: [PATCH] Content Type Designer: fix style and localization (#20073) * fix style and localization * Update src/Umbraco.Web.UI.Client/src/packages/content/content-type/workspace/views/design/content-type-design-editor.element.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix class name as well * add data-marks * Updated package version to include test fixes for tab name --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Andreas Zerbst --- .../content-type-design-editor.element.ts | 42 +++++++++++++------ .../package-lock.json | 8 ++-- .../Umbraco.Tests.AcceptanceTest/package.json | 2 +- 3 files changed, 35 insertions(+), 17 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/content/content-type/workspace/views/design/content-type-design-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/content/content-type/workspace/views/design/content-type-design-editor.element.ts index 9f632ab6fc..beb09ec99d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/content/content-type/workspace/views/design/content-type-design-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/content/content-type/workspace/views/design/content-type-design-editor.element.ts @@ -475,7 +475,7 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements // TODO: Localize this: if (this._sortModeActive) return; return html` - + Add tab @@ -492,6 +492,7 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements ${this._compositionRepositoryAlias ? html` ` : ''} - + ${sortButtonText} @@ -571,26 +577,28 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements const tabName = hasTabName ? tab.name : 'Unnamed'; const tabId = tab.ownerId ?? tab.ids[0]; if (this._sortModeActive) { - return html`
+ return html`
${ownedTab - ? html` ${tabName} + ? html` ${this.localize.string(tabName)} this.#changeOrderNumber(tab, e)}>` - : html`${tab.name!}`} + : html`${this.localize.string(tabName)}`}
`; } if (tabActive && ownedTab) { - return html`
+ return html`
- ${hasTabName ? tab.name : 'Unnamed'} ${this.renderDeleteFor( - tab, - )} + ${hasTabName ? this.localize.string(tabName) : 'Unnamed'} + ${this.renderDeleteFor(tab)}
`; } else { - return html`
${tab.name!}
`; + return html`
+ ${this.localize.string(tabName)} +
`; } } @@ -621,6 +630,7 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements renderDeleteFor(tab: UmbPropertyTypeContainerMergedModel) { return html`