Skip to content

Commit

Permalink
fix(FEC-14023): add strictPosition property to tooltip (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
semarche-kaltura authored Jul 2, 2024
1 parent 53ebd22 commit e058c69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface TooltipProps {
label: string;
className?: string;
type?: ToolTipPosition;
strictPosition?: boolean;
}

export interface ButtonProps {
Expand Down Expand Up @@ -111,7 +112,8 @@ export class Button extends Component<ButtonProps> {
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 <Tooltip {...tooltipProps}>{this.renderButton()}</Tooltip>;
}
Expand Down

0 comments on commit e058c69

Please sign in to comment.