@codecademy/gamut
73.6.173.6.2-alpha.3e37cd.0
dist/Disclosure/DisclosureButton/index.js~
dist/Disclosure/DisclosureButton/index.jsModified+2
Index: package/dist/Disclosure/DisclosureButton/index.js
===================================================================
--- package/dist/Disclosure/DisclosureButton/index.js
+++ package/dist/Disclosure/DisclosureButton/index.js
@@ -6,8 +6,9 @@
import { DisclosureButtonWrapper } from '../elements';
import { getRotationSize, getSpacing, getTitleSize } from '../helpers';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export const DisclosureButton = ({
+ buttonProps,
disabled = false,
heading,
headingLevel = 'h3',
isExpanded,
@@ -29,8 +30,9 @@
horizontalSpacing
} = getSpacing(spacing);
return /*#__PURE__*/_jsx(FlexBox, {
children: /*#__PURE__*/_jsxs(DisclosureButtonWrapper, {
+ ...buttonProps,
"aria-expanded": isExpanded,
disabled: disabled,
height: "100%",
px: horizontalSpacing,