@moda/om 21.7.0 → 21.7.1
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.esm.js
CHANGED
|
@@ -12587,6 +12587,7 @@ var SlidingPane = function SlidingPane(_ref) {
|
|
|
12587
12587
|
_ref$autoFocus = _ref.autoFocus,
|
|
12588
12588
|
autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,
|
|
12589
12589
|
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
12590
|
+
var titleId = useId();
|
|
12590
12591
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
12591
12592
|
className: classNames('SlidingPane__overlay', {
|
|
12592
12593
|
'SlidingPane__overlay--active': visible
|
|
@@ -12598,6 +12599,9 @@ var SlidingPane = function SlidingPane(_ref) {
|
|
|
12598
12599
|
onClickOutside: onClose,
|
|
12599
12600
|
onEscapeKey: onClose
|
|
12600
12601
|
}, /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
12602
|
+
role: "dialog",
|
|
12603
|
+
"aria-modal": "true",
|
|
12604
|
+
"aria-labelledby": titleId,
|
|
12601
12605
|
className: classNames('SlidingPane', className, {
|
|
12602
12606
|
'SlidingPane--active': visible
|
|
12603
12607
|
})
|
|
@@ -12607,6 +12611,7 @@ var SlidingPane = function SlidingPane(_ref) {
|
|
|
12607
12611
|
direction: "horizontal",
|
|
12608
12612
|
className: "SlidingPane__top"
|
|
12609
12613
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
12614
|
+
id: titleId,
|
|
12610
12615
|
treatment: "h5",
|
|
12611
12616
|
family: "serif"
|
|
12612
12617
|
}, title), /*#__PURE__*/React__default.createElement(Clickable, {
|