@atom-learning/components 6.13.3-beta.1 → 6.14.3

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.
package/dist/index.cjs.js CHANGED
@@ -465,7 +465,12 @@ TooltipComponent.displayName = "Tooltip";
465
465
  //#endregion
466
466
  //#region src/utilities/optional-tooltip-wrapper/OptionalTooltipWrapper.tsx
467
467
  var OptionalTooltipWrapper = ({ hasTooltip, label, tooltipSide, children }) => {
468
- if (hasTooltip) return /* @__PURE__ */ react.createElement(Tooltip, null, /* @__PURE__ */ react.createElement(Tooltip.Trigger, { asChild: true }, children), /* @__PURE__ */ react.createElement(Tooltip.Content, { side: tooltipSide }, label));
468
+ if (hasTooltip) return /* @__PURE__ */ react.createElement(Tooltip, null, /* @__PURE__ */ react.createElement(Tooltip.Trigger, {
469
+ asChild: true,
470
+ onFocus: (e) => {
471
+ if (!e.currentTarget.matches(":focus-visible")) e.preventDefault();
472
+ }
473
+ }, children), /* @__PURE__ */ react.createElement(Tooltip.Content, { side: tooltipSide }, label));
469
474
  return /* @__PURE__ */ react.createElement(react.Fragment, null, children);
470
475
  };
471
476
  OptionalTooltipWrapper.displayName = "OptionalTooltipWrapper";