From dca159bdf40edcb39cfcfdb7deacc85272e28753 Mon Sep 17 00:00:00 2001 From: "junghoon86.park" Date: Tue, 30 Jul 2024 10:32:38 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=8C=EB=93=9C=EC=8A=A4=ED=86=A4=20?= =?UTF-8?q?=EB=93=9C=EB=9E=8D=EB=8B=A4=EC=9A=B4=20=EB=B6=80=EB=B6=84=20ari?= =?UTF-8?q?a-hidden=20=EA=B4=80=EB=A0=A8=20=EC=88=98=EC=A0=95=EA=B1=B4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../patches/@enact+sandstone+1.5.1.patch | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 com.twin.app.shoptime/patches/@enact+sandstone+1.5.1.patch diff --git a/com.twin.app.shoptime/patches/@enact+sandstone+1.5.1.patch b/com.twin.app.shoptime/patches/@enact+sandstone+1.5.1.patch new file mode 100644 index 00000000..190ca4c1 --- /dev/null +++ b/com.twin.app.shoptime/patches/@enact+sandstone+1.5.1.patch @@ -0,0 +1,61 @@ +diff --git a/node_modules/@enact/sandstone/Dropdown/Dropdown.js b/node_modules/@enact/sandstone/Dropdown/Dropdown.js +index 3697a8b..e54caa9 100644 +--- a/node_modules/@enact/sandstone/Dropdown/Dropdown.js ++++ b/node_modules/@enact/sandstone/Dropdown/Dropdown.js +@@ -111,7 +111,13 @@ var DropdownBase = (0, _kind["default"])({ + * @public + */ + 'aria-label': _propTypes2["default"].string, +- ++ /** ++ * The "aria-hidden" for the Dropdown. ++ * ++ * @type {Boolean} ++ * @public ++ */ ++ 'aria-hidden': _propTypes2["default"].bool, + /** + * Items to be displayed in the `Dropdown` when `open`. + * +@@ -265,12 +271,14 @@ var DropdownBase = (0, _kind["default"])({ + }, + children: function children(_ref3) { + var _children = _ref3.children, +- selected = _ref3.selected; ++ selected = _ref3.selected, ++ ariaHidden = _ref3['aria-hidden']; + if (!Array.isArray(_children)) return []; + return _children.map(function (child, i) { + var aria = { + role: 'checkbox', +- 'aria-checked': selected === i ++ 'aria-checked': selected === i, ++ 'aria-hidden' : ariaHidden + }; + process.env.NODE_ENV !== "production" ? (0, _warning["default"])(child != null, "Unsupported null or undefined child provided at index ".concat(i, " which will not be visible when rendered.")) : void 0; + +@@ -324,6 +332,7 @@ var DropdownBase = (0, _kind["default"])({ + }, + render: function render(_ref8) { + var ariaLabel = _ref8['aria-label'], ++ ariaHidden = _ref8['aria-hidden'], + ariaLabelledBy = _ref8.ariaLabelledBy, + children = _ref8.children, + direction = _ref8.direction, +@@ -337,7 +346,7 @@ var DropdownBase = (0, _kind["default"])({ + size = _ref8.size, + title = _ref8.title, + width = _ref8.width, +- rest = _objectWithoutProperties(_ref8, ["aria-label", "ariaLabelledBy", "children", "direction", "disabled", "onClose", "onOpen", "onSelect", "open", "placeholder", "selected", "size", "title", "width"]); ++ rest = _objectWithoutProperties(_ref8, ["aria-label", "aria-hidden", "ariaLabelledBy", "children", "direction", "disabled", "onClose", "onOpen", "onSelect", "open", "placeholder", "selected", "size", "title", "width"]); + + delete rest.rtl; + var ariaProps = (0, _util.extractAriaProps)(rest); +@@ -360,6 +369,7 @@ var DropdownBase = (0, _kind["default"])({ + var openDropdown = hasChildren && !disabled && open; + return /*#__PURE__*/_react["default"].createElement("div", Object.assign({}, calcAriaProps, rest), title, /*#__PURE__*/_react["default"].createElement(DropdownButton, Object.assign({ + "aria-label": ariaLabel, ++ "aria-hidden": ariaHidden, + direction: direction, + disabled: hasChildren ? disabled : true, + focusEffect: "static",