diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/collection/components/collection-view-bundle.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/collection/components/collection-view-bundle.element.ts
index 0ff700a282..276c742c57 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/core/collection/components/collection-view-bundle.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/core/collection/components/collection-view-bundle.element.ts
@@ -110,11 +110,6 @@ export class UmbCollectionViewBundleElement extends UmbLitElement {
#onClick(view: UmbCollectionViewLayout) {
this.#collectionContext?.setLastSelectedView(this._entityUnique, view.alias);
-
- // TODO: This ignorer is just neede for JSON SCHEMA TO WORK, As its not updated with latest TS jet.
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
- // @ts-ignore
- this._popover?.hidePopover();
}
render() {
@@ -123,7 +118,7 @@ export class UmbCollectionViewBundleElement extends UmbLitElement {
return html`
- ${this.#renderItemDisplay(this._currentView)}
+
@@ -141,31 +136,27 @@ export class UmbCollectionViewBundleElement extends UmbLitElement {
#renderItem(view: UmbCollectionViewLayout) {
return html`
- this.#onClick(view)}>
- ${this.#renderItemDisplay(view)}
- ${view.label}
-
+ this.#onClick(view)}
+ ?active=${view.alias === this._currentView?.alias}>
+
+
`;
}
- #renderItemDisplay(view: UmbCollectionViewLayout) {
- return html``;
- }
-
static styles = [
UmbTextStyles,
css`
:host {
--uui-button-content-align: left;
}
- .label {
- margin-left: var(--uui-size-space-1);
- }
+
.filter-dropdown {
- display: flex;
- gap: var(--uui-size-space-1);
- flex-direction: column;
+ padding: var(--uui-size-space-3);
}
+
umb-icon {
display: inline-block;
}