From 1eaf0a65877fe0d8bc4428a064ec379da4d45bed Mon Sep 17 00:00:00 2001 From: "junghoon86.park" Date: Tue, 30 Jul 2024 13:45:53 +0900 Subject: [PATCH] =?UTF-8?q?=EB=93=9C=EB=9E=8D=EB=8B=A4=EC=9A=B4=20ariahidd?= =?UTF-8?q?en=EA=B0=92=20true=EC=9D=BC=EB=95=8C=20children=20role=20?= =?UTF-8?q?=EA=B0=92=20none=EC=B2=98=EB=A6=AC=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 | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) 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 index 190ca4c1..99422f79 100644 --- a/com.twin.app.shoptime/patches/@enact+sandstone+1.5.1.patch +++ b/com.twin.app.shoptime/patches/@enact+sandstone+1.5.1.patch @@ -1,5 +1,9 @@ +diff --git a/node_modules/@enact/sandstone/.DS_Store b/node_modules/@enact/sandstone/.DS_Store +new file mode 100644 +index 0000000..cf71ea4 +Binary files /dev/null and b/node_modules/@enact/sandstone/.DS_Store differ diff --git a/node_modules/@enact/sandstone/Dropdown/Dropdown.js b/node_modules/@enact/sandstone/Dropdown/Dropdown.js -index 3697a8b..e54caa9 100644 +index 3697a8b..a8f8c18 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"])({ @@ -13,7 +17,7 @@ index 3697a8b..e54caa9 100644 + * @type {Boolean} + * @public + */ -+ 'aria-hidden': _propTypes2["default"].bool, ++ 'aria-hidden': _propTypes2["default"].bool,//수정한부분 /** * Items to be displayed in the `Dropdown` when `open`. * @@ -23,14 +27,15 @@ index 3697a8b..e54caa9 100644 var _children = _ref3.children, - selected = _ref3.selected; + selected = _ref3.selected, -+ ariaHidden = _ref3['aria-hidden']; ++ ariaHidden = _ref3['aria-hidden'];//수정한부분 if (!Array.isArray(_children)) return []; return _children.map(function (child, i) { var aria = { - role: 'checkbox', +- role: 'checkbox', - 'aria-checked': selected === i ++ role: ariaHidden === true ? 'none' : 'checkbox', + 'aria-checked': selected === i, -+ 'aria-hidden' : ariaHidden ++ '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; @@ -38,24 +43,30 @@ index 3697a8b..e54caa9 100644 }, render: function render(_ref8) { var ariaLabel = _ref8['aria-label'], -+ ariaHidden = _ref8['aria-hidden'], ++ ariaHidden = _ref8['aria-hidden'],//수정한부분 ariaLabelledBy = _ref8.ariaLabelledBy, children = _ref8.children, direction = _ref8.direction, -@@ -337,7 +346,7 @@ var DropdownBase = (0, _kind["default"])({ +@@ -337,8 +346,8 @@ 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"]); - ++ //수정한부분 rest 에 "aria-hidden"추가 delete rest.rtl; var ariaProps = (0, _util.extractAriaProps)(rest); + var calcAriaProps = ariaLabel != null ? null : { @@ -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, ++ "aria-hidden": ariaHidden,//수정한부분 direction: direction, disabled: hasChildren ? disabled : true, focusEffect: "static", +diff --git a/node_modules/@enact/sandstone/Dropdown/Dropdown.js.zip b/node_modules/@enact/sandstone/Dropdown/Dropdown.js.zip +new file mode 100644 +index 0000000..e5afa8c +Binary files /dev/null and b/node_modules/@enact/sandstone/Dropdown/Dropdown.js.zip differ