Skip to content

Conversation

@nielslyngsoe
Copy link
Member

@nielslyngsoe nielslyngsoe commented Oct 15, 2025

Fix minor mistake where umb-badge did not have the slot attribute defined — this is only needed for the variant-selector badge.

Additionally makes the badge go on top of the dashed-line appearing on not-created variants.

Test notes:
Trigger a validation issue on a variant and navigate to another one, a badge should appear on the variant-selector to lead the user back to correct the issue.

Copilot AI review requested due to automatic review settings October 15, 2025 08:53
@nielslyngsoe nielslyngsoe enabled auto-merge (squash) October 15, 2025 08:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a rendering issue in the workspace split view variant selector where a hint badge was missing the slot="append" attribute needed for proper positioning.

  • Created a dedicated method #renderVariantSelectorHintBadge that includes the required slot attribute
  • Updated the template to use the new method instead of the generic #renderHintBadge
  • Added CSS styling to ensure proper z-index positioning of the badge

Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

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

Can confirm this fixes the issue. To replay testing steps:

  • Created a document type that varies by culture with a text string that also varies by culture.
  • Created content in two languages, leaving the text string empty in the non-default one.
  • Made the text string mandatory.
  • Saved and published both languages from the default language.
  • With this change in place, the badge appears in the variant selector indicating a validation error in the non-default language. Opening the selector shows the badge on the language with the validation error.
    • Previously the first badge wasn't visible, so there was no indication to open the selector and see the badge on the language with the validation error.
image

@AndyButland AndyButland changed the title variant selector: hint badge should render in append slotfor the variant selector Variant Selector: Hint badge should render in append slot Oct 15, 2025
@nielslyngsoe nielslyngsoe merged commit 126c8a5 into release/17.0 Oct 15, 2025
24 checks passed
@nielslyngsoe nielslyngsoe deleted the v17/hotfix/variant-selector-validation-badge-render-in-append-slot branch October 15, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants