Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix #19221 #19254

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 1 commit into
base: release/16.0
Choose a base branch
from
Open

Fix #19221 #19254

wants to merge 1 commit into from

Conversation

nielslyngsoe
Copy link
Member

Fixes #19221

image

This screenshot is from the Custom View Example which has elements with z-index 1000, before this fix that was ruining the UI, now it stays behind.

@nielslyngsoe nielslyngsoe enabled auto-merge (squash) May 6, 2025 16:31
Copy link
Contributor

@Copilot 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 UI layering issue as documented in issue #19221 by adjusting CSS z-index values and ensuring consistent attribute usage for extension components.

  • Adds the 'part' attribute to extension components in block entry elements
  • Introduces a shared style block for extension component parts to manage z-index
  • Updates the custom view component’s z-index to correctly layer the UI

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/Umbraco.Web.UI.Client/src/packages/block/block-rte/components/block-rte-entry/block-rte-entry.element.ts Adds setting of the 'part' attribute and inserts a style block for proper stacking
src/Umbraco.Web.UI.Client/src/packages/block/block-list/components/block-list-entry/block-list-entry.element.ts Adds setting of the 'part' attribute and inserts a style block for proper stacking
src/Umbraco.Web.UI.Client/src/packages/block/block-grid/components/block-grid-entry/block-grid-entry.element.ts Adds setting of the 'part' attribute and inserts a style block for proper stacking
src/Umbraco.Web.UI.Client/examples/block-custom-view/block-custom-view.ts Adjusts custom view CSS and updates z-index values to fix UI overlap issues
Comments suppressed due to low confidence (1)

src/Umbraco.Web.UI.Client/examples/block-custom-view/block-custom-view.ts:34

  • [nitpick] Verify that the new high z-index value is intentional and consistently fits within the overall stacking context to avoid potential overlap issues with other UI elements.
z-index: 10000;

@@ -345,6 +346,12 @@ export class UmbBlockRteEntryElement extends UmbLitElement implements UmbPropert
outline: 3px solid var(--uui-color-focus);
}
}

umb-extension-slot::part(component) {
Copy link
Preview

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider centralizing the shared styling for 'umb-extension-slot::part(component)' across block components to reduce duplication and simplify future updates.

Copilot uses AI. Check for mistakes.

@@ -511,6 +512,11 @@ export class UmbBlockListEntryElement extends UmbLitElement implements UmbProper
border-color: var(--uui-color-invalid);
}

umb-extension-slot::part(component) {
Copy link
Preview

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider centralizing the shared styling for 'umb-extension-slot::part(component)' across block components to reduce duplication and simplify future updates.

Copilot uses AI. Check for mistakes.

Comment on lines +646 to +647
position: relative;
z-index: 0;
Copy link
Preview

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider centralizing the shared styling for 'umb-extension-slot::part(component)' across block components to reduce duplication and simplify future updates.

Suggested change
position: relative;
z-index: 0;
position: var(--umb-extension-slot-component-position, relative);
z-index: var(--umb-extension-slot-component-z-index, 0);

Copilot uses AI. Check for mistakes.

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.

1 participant