From 126c8a56d5556f6e6dfe9057487022608bca95f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 15 Oct 2025 11:29:49 +0200 Subject: [PATCH] variant selector: hint badge should render in append slotfor the variant selector (#20504) ensure variant-selector badge gets rendered at the right spot --- ...workspace-split-view-variant-selector.element.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/components/workspace-split-view/workspace-split-view-variant-selector.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/components/workspace-split-view/workspace-split-view-variant-selector.element.ts index e273a92aa6..3b684d937e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/components/workspace-split-view/workspace-split-view-variant-selector.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/components/workspace-split-view/workspace-split-view-variant-selector.element.ts @@ -389,7 +389,7 @@ export class UmbWorkspaceSplitViewVariantSelectorElement< ${this.#renderReadOnlyTag(this._activeVariant?.culture)} - ${!this._variantSelectorOpen ? this.#renderHintBadge(firstHintOnInactiveVariant) : nothing} + ${!this._variantSelectorOpen ? this.#renderVariantSelectorHintBadge(firstHintOnInactiveVariant) : nothing} ${this._activeVariants.length > 1 ? html` @@ -466,6 +466,13 @@ export class UmbWorkspaceSplitViewVariantSelectorElement< `; } + #renderVariantSelectorHintBadge(hint?: UmbVariantHint) { + if (!hint) return nothing; + return html` ${hint.text}`; + } + #renderSubHintBadge(hint?: UmbVariantHint) { if (!hint) return nothing; return html`