-
-
+
+
diff --git a/libs/components/src/item/item.component.ts b/libs/components/src/item/item.component.ts
index 5ce421e980b..9ca290c6afd 100644
--- a/libs/components/src/item/item.component.ts
+++ b/libs/components/src/item/item.component.ts
@@ -1,5 +1,11 @@
import { CommonModule } from "@angular/common";
-import { ChangeDetectionStrategy, Component, HostListener, signal } from "@angular/core";
+import {
+ ChangeDetectionStrategy,
+ Component,
+ HostBinding,
+ HostListener,
+ signal,
+} from "@angular/core";
import { A11yRowDirective } from "../a11y/a11y-row.directive";
@@ -26,6 +32,10 @@ export const BitItemHeight = 59;
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: "item.component.html",
providers: [{ provide: A11yRowDirective, useExisting: ItemComponent }],
+ host: {
+ class:
+ "tw-block tw-box-border tw-overflow-auto tw-flex tw-bg-background [&:has(.item-main-content_button:hover,.item-main-content_a:hover)]:tw-cursor-pointer [&:has(.item-main-content_button:hover,.item-main-content_a:hover)]:tw-bg-primary-100 tw-text-main tw-border-solid tw-border-b tw-border-0 [&:not(bit-layout_*)]:tw-rounded-lg bit-compact:[&:not(bit-layout_*)]:tw-rounded-none bit-compact:[&:not(bit-layout_*)]:last:tw-mb-1.5 bit-compact:[&:not(bit-layout_*)]:last:tw-rounded-b-lg bit-compact:[&:not(bit-layout_*)]:first:tw-rounded-t-lg tw-mb-1.5 bit-compact:tw-mb-0",
+ },
})
export class ItemComponent extends A11yRowDirective {
/**
@@ -40,4 +50,12 @@ export class ItemComponent extends A11yRowDirective {
onFocusOut() {
this.focusVisibleWithin.set(false);
}
+
+ @HostBinding("class") get classList(): string[] {
+ return [
+ this.focusVisibleWithin()
+ ? "tw-z-10 tw-rounded tw-outline-none tw-ring tw-ring-primary-600 tw-border-transparent"
+ : "tw-border-b-shadow",
+ ];
+ }
}