@skyscanner/backpack-web 42.20.2 → 42.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,7 @@ export type Props = {
19
19
  hideOnTouchDevices?: boolean;
20
20
  placement?: Placement;
21
21
  isOpen?: boolean;
22
+ zIndexValue?: number;
22
23
  };
23
- declare const BpkTooltip: ({ ariaLabel, children, hideOnTouchDevices, id, isOpen, padded, placement, target, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
24
+ declare const BpkTooltip: ({ ariaLabel, children, hideOnTouchDevices, id, isOpen, padded, placement, target, type, zIndexValue, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
24
25
  export default BpkTooltip;
@@ -60,6 +60,7 @@ const BpkTooltip = ({
60
60
  placement = 'bottom',
61
61
  target,
62
62
  type = TOOLTIP_TYPES.light,
63
+ zIndexValue,
63
64
  ...rest
64
65
  }) => {
65
66
  const [isOpenState, setIsOpenState] = useState(isOpen);
@@ -107,7 +108,10 @@ const BpkTooltip = ({
107
108
  children: /*#__PURE__*/_jsx("div", {
108
109
  className: getClassName('bpk-tooltip--container'),
109
110
  ref: refs.setFloating,
110
- style: floatingStyles,
111
+ style: {
112
+ ...floatingStyles,
113
+ zIndex: zIndexValue
114
+ },
111
115
  ...getFloatingProps(),
112
116
  children: /*#__PURE__*/_jsx(TransitionInitialMount, {
113
117
  appearClassName: getClassName('bpk-tooltip--appear'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "42.20.2",
3
+ "version": "42.21.0",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",