Skip to content

Commit e8f8165

Browse files
fix: simplify tooltip CSS selector to [role='tooltip'] only
BrnTooltipContent always has role='tooltip' as a static host attribute. Drop the class and data-attribute selectors which may not always be present. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 930a00c commit e8f8165

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

apps/web-app/src/styles/styles.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,9 @@
247247
}
248248

249249
/* ─── Spartan tooltip ──────────────────────────────────────────────────────── */
250-
/* CDK overlays render outside the app root, so we target the BrnTooltipContent */
251-
/* host element both by class (spartan-tooltip) AND by attribute selectors. */
252-
.spartan-tooltip,
253-
[data-state][data-side][role='tooltip'] {
250+
/* CDK overlays render outside the app root. BrnTooltipContent host element has */
251+
/* role="tooltip" set as a static host attribute — guaranteed to be present. */
252+
[role='tooltip'] {
254253
background-color: var(--md-sys-color-inverse-surface) !important;
255254
color: var(--md-sys-color-inverse-on-surface) !important;
256255
font-size: 0.75rem;

0 commit comments

Comments
 (0)