@sproutsocial/seeds-react-menu 1.6.17 → 1.7.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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/MenuToggleButton/MenuToggleButton.tsx +15 -0
- package/src/MenuToggleButton/__tests__/MenuToggleButton.test.tsx +495 -0
package/dist/index.js
CHANGED
|
@@ -2848,6 +2848,15 @@ var MenuToggleButton = (props) => {
|
|
|
2848
2848
|
...ariaProps,
|
|
2849
2849
|
...isListbox ? {} : { role: "button", "aria-haspopup": "menu" }
|
|
2850
2850
|
});
|
|
2851
|
+
if (toggleButtonProps && toggleButtonProps["aria-activedescendant"] === "") {
|
|
2852
|
+
toggleButtonProps["aria-activedescendant"] = void 0;
|
|
2853
|
+
}
|
|
2854
|
+
if (toggleButtonProps && toggleButtonProps["aria-expanded"] === false) {
|
|
2855
|
+
toggleButtonProps["aria-controls"] = void 0;
|
|
2856
|
+
}
|
|
2857
|
+
if (toggleButtonProps) {
|
|
2858
|
+
toggleButtonProps["aria-labelledby"] = void 0;
|
|
2859
|
+
}
|
|
2851
2860
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_seeds_react_button.Button, { appearance: "secondary", ...toggleButtonProps, ...restProps });
|
|
2852
2861
|
};
|
|
2853
2862
|
|