From 369750a7854abaaf46399dacbf7391c9068323e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enes=20Y=C4=B1ld=C4=B1r=C4=B1m?= Date: Fri, 14 Jul 2023 15:31:48 +0300 Subject: [PATCH] feat(tooltip): css variable to set display of tooltip trigger (#655) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Enes Yıldırım --- src/components/tooltip/bl-tooltip.css | 2 +- src/components/tooltip/bl-tooltip.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tooltip/bl-tooltip.css b/src/components/tooltip/bl-tooltip.css index 4a738ef4..84b1e602 100644 --- a/src/components/tooltip/bl-tooltip.css +++ b/src/components/tooltip/bl-tooltip.css @@ -3,7 +3,7 @@ } .trigger { - display: inline-flex; + display: var(--bl-tooltip-trigger-display, inline-flex); cursor: pointer; } diff --git a/src/components/tooltip/bl-tooltip.ts b/src/components/tooltip/bl-tooltip.ts index d2eb15f4..e96809ff 100644 --- a/src/components/tooltip/bl-tooltip.ts +++ b/src/components/tooltip/bl-tooltip.ts @@ -13,7 +13,7 @@ import style from './bl-tooltip.css'; * @summary Baklava Tooltip component * @dependency bl-popover * - * @property {string} placement - Sets the tooltip placement + * @cssproperty [--bl-tooltip-trigger-display=inline-flex] Set the display of the tooltip trigger. */ @customElement('bl-tooltip') export default class BlTooltip extends LitElement {