From 580fc6dbb94a1bbdfcb74c6b4c86eccc98e07172 Mon Sep 17 00:00:00 2001 From: sua yoo Date: Wed, 4 Jun 2025 10:43:28 -0700 Subject: [PATCH] devex: Replace inverted tooltip style with popver component (#2644) Replaces all instances of `sl-tooltip.invert-tooltip` with `` --- frontend/src/components/ui/popover.ts | 2 -- .../src/components/ui/table/table.stylesheet.css | 3 ++- .../src/features/qa/page-list/ui/page-details.ts | 6 +++--- frontend/src/features/qa/page-list/ui/page.ts | 4 ++-- .../src/pages/org/archived-item-detail/ui/qa.ts | 8 ++++---- frontend/src/pages/org/browser-profiles-list.ts | 6 +++--- frontend/src/stories/components/Popover.stories.ts | 2 +- frontend/src/theme.stylesheet.css | 13 ------------- 8 files changed, 15 insertions(+), 29 deletions(-) diff --git a/frontend/src/components/ui/popover.ts b/frontend/src/components/ui/popover.ts index e9e88a64..0e1654ad 100644 --- a/frontend/src/components/ui/popover.ts +++ b/frontend/src/components/ui/popover.ts @@ -1,4 +1,3 @@ -import { localized } from "@lit/localize"; import SlTooltip from "@shoelace-style/shoelace/dist/components/tooltip/tooltip.component.js"; import slTooltipStyles from "@shoelace-style/shoelace/dist/components/tooltip/tooltip.styles.js"; import { css } from "lit"; @@ -19,7 +18,6 @@ import { customElement, property } from "lit/decorators.js"; * @attr {Boolean} disabled */ @customElement("btrix-popover") -@localized() export class Popover extends SlTooltip { @property({ type: Boolean, reflect: true }) hoist = true; diff --git a/frontend/src/components/ui/table/table.stylesheet.css b/frontend/src/components/ui/table/table.stylesheet.css index 9e28a6f9..b6536d59 100644 --- a/frontend/src/components/ui/table/table.stylesheet.css +++ b/frontend/src/components/ui/table/table.stylesheet.css @@ -9,7 +9,8 @@ btrix-table-cell .rowClickTarget { max-width: 100%; } -btrix-table-cell sl-tooltip > * { +btrix-table-cell sl-tooltip > *, +btrix-table-cell btrix-popover > * { /* Place above .rowClickTarget::after overlay */ z-index: 1; } diff --git a/frontend/src/features/qa/page-list/ui/page-details.ts b/frontend/src/features/qa/page-list/ui/page-details.ts index 6c28b56b..44d81324 100644 --- a/frontend/src/features/qa/page-list/ui/page-details.ts +++ b/frontend/src/features/qa/page-list/ui/page-details.ts @@ -20,7 +20,7 @@ export function formatPercentage(n: number, fractionDigits = 2) { export const pageDetails = (page: ArchivedItemQAPage) => html`