From e058c6943e91cbf02106bdf6099bb2dfe53f3c1d Mon Sep 17 00:00:00 2001 From: Serhii Date: Tue, 2 Jul 2024 14:03:59 +0300 Subject: [PATCH] fix(FEC-14023): add `strictPosition` property to tooltip (#52) --- src/components/button/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/button/index.tsx b/src/components/button/index.tsx index ce16071..c8d43da 100644 --- a/src/components/button/index.tsx +++ b/src/components/button/index.tsx @@ -29,6 +29,7 @@ export interface TooltipProps { label: string; className?: string; type?: ToolTipPosition; + strictPosition?: boolean; } export interface ButtonProps { @@ -111,7 +112,8 @@ export class Button extends Component { const tooltipProps = { label: props.tooltip.label, ...(props.tooltip.type ? { type: props.tooltip.type } : {}), - ...(props.tooltip.className ? { classNames: props.tooltip.className } : {}) + ...(props.tooltip.className ? { classNames: props.tooltip.className } : {}), + ...(props.tooltip.strictPosition ? { strictPosition: true } : {}) }; return {this.renderButton()}; }