@loomhq/lens 10.51.3 → 10.51.4
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.
|
@@ -129,7 +129,7 @@ export const ModalCard = (_a) => {
|
|
|
129
129
|
React.createElement(ModalCardChildrenSection, null, children))));
|
|
130
130
|
};
|
|
131
131
|
const Modal = React.forwardRef((_a, ref) => {
|
|
132
|
-
var { children, isOpen, mainButton, secondaryButton, alternativeButton, title, noPadding, onCloseClick, onBackgroundClick, onKeyDown, hasDividers, maxWidth = 60, zIndex = 1000 } = _a, props = __rest(_a, ["children", "isOpen", "mainButton", "secondaryButton", "alternativeButton", "title", "noPadding", "onCloseClick", "onBackgroundClick", "onKeyDown", "hasDividers", "maxWidth", "zIndex"]);
|
|
132
|
+
var { children, id, isOpen, mainButton, secondaryButton, alternativeButton, title, noPadding, onCloseClick, onBackgroundClick, onKeyDown, hasDividers, maxWidth = 60, zIndex = 1000 } = _a, props = __rest(_a, ["children", "id", "isOpen", "mainButton", "secondaryButton", "alternativeButton", "title", "noPadding", "onCloseClick", "onBackgroundClick", "onKeyDown", "hasDividers", "maxWidth", "zIndex"]);
|
|
133
133
|
const hasButtons = mainButton || secondaryButton || alternativeButton ? true : false;
|
|
134
134
|
const closeClickHandler = e => {
|
|
135
135
|
if (onBackgroundClick) {
|
|
@@ -144,7 +144,7 @@ const Modal = React.forwardRef((_a, ref) => {
|
|
|
144
144
|
React.createElement(ModalCard, { ref: ref,
|
|
145
145
|
// TODO: LNS-148: Add aria labelling for screenreader support
|
|
146
146
|
// ariaLabelledBy={title}
|
|
147
|
-
isOpen: isOpen, maxWidth: maxWidth, onCloseClick: onCloseClick },
|
|
147
|
+
id: id, isOpen: isOpen, maxWidth: maxWidth, onCloseClick: onCloseClick },
|
|
148
148
|
React.createElement(ContentWrapper, { rows: `${title ? 'auto ' : ''} ${children ? '1fr ' : ''} ${hasButtons ? 'auto' : ''}` },
|
|
149
149
|
title && (React.createElement(TitleSection, { bottom: children
|
|
150
150
|
? 'var(--lns-space-medium)'
|