Skip to content

Commit

Permalink
Rename directive export to tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Dec 4, 2024
1 parent 6798f20 commit a3d3551
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/common/ui/floatbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {html, css} from 'lit';
import {property} from 'lit/decorators.js';
import {FloatElement} from '../../custom';
import {CustomElement} from '../../injectors';
import {tooltipDirective, tooltipStyles} from './tooltip';
import {tooltip, tooltipStyles} from './tooltip';

@CustomElement()
export class FloatBar extends FloatElement {
Expand Down Expand Up @@ -82,7 +82,7 @@ export class FloatBar extends FloatElement {

return html`
<div class="market-float-bar-container" style="left: ${left}%; width: ${dynamicWidth.toFixed(2)}%;">
${tooltipDirective(tooltipText)}
${tooltip(tooltipText)}
<div style="height: 8px; border-radius: 4px; overflow: hidden; font-size: 0;">
${this.floatConditions.map(
(cond) => html`
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/common/ui/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TooltipDirective extends Directive {
render(label: string, extraClasses?: string) {}
}

export const tooltipDirective = directive(TooltipDirective);
export const tooltip = directive(TooltipDirective);

export const tooltipStyles: CSSResult[] = [
hintcss,
Expand Down

0 comments on commit a3d3551

Please sign in to comment.