@moderneinc/design-system-components 7.7.0-next.c77ca6 → 7.7.0-next.ced5eb
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/Tooltip/Tooltip.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4874,8 +4874,10 @@ const ModTooltip = ({
|
|
|
4874
4874
|
children,
|
|
4875
4875
|
arrow = false,
|
|
4876
4876
|
placement,
|
|
4877
|
+
describeChild,
|
|
4877
4878
|
...props
|
|
4878
4879
|
}) => {
|
|
4880
|
+
const accessibleName = typeof title === "string" && !description && !describeChild ? title : void 0;
|
|
4879
4881
|
const titleContent = description ? /* @__PURE__ */ jsxRuntime.jsxs(Stack, { sx: { gap: `${designSystemTokens.spacing.spacing_1_4}px` }, children: [
|
|
4880
4882
|
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "inherit", sx: { fontWeight: designSystemTokens.typography.fontWeight.semiBold }, children: title }),
|
|
4881
4883
|
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "inherit", children: description })
|
|
@@ -4887,6 +4889,8 @@ const ModTooltip = ({
|
|
|
4887
4889
|
title: titleContent,
|
|
4888
4890
|
arrow,
|
|
4889
4891
|
placement,
|
|
4892
|
+
describeChild,
|
|
4893
|
+
"aria-label": accessibleName,
|
|
4890
4894
|
...props,
|
|
4891
4895
|
children
|
|
4892
4896
|
}
|