@wix/editor-react-components 1.2347.0 → 1.2348.0
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.
|
@@ -1982,7 +1982,7 @@ const header = "header__zD0Aj";
|
|
|
1982
1982
|
const headerContent = "headerContent__YA-my";
|
|
1983
1983
|
const main = "main__nxjmC";
|
|
1984
1984
|
const content = "content__Axo2j";
|
|
1985
|
-
const
|
|
1985
|
+
const openButtonNavigation = "openButtonNavigation__q0G3h";
|
|
1986
1986
|
const closeButton = "closeButton__SyNEB";
|
|
1987
1987
|
const navbar = "navbar__-KnMk";
|
|
1988
1988
|
const classes = {
|
|
@@ -1993,7 +1993,7 @@ const classes = {
|
|
|
1993
1993
|
headerContent,
|
|
1994
1994
|
main,
|
|
1995
1995
|
content,
|
|
1996
|
-
|
|
1996
|
+
openButtonNavigation,
|
|
1997
1997
|
closeButton,
|
|
1998
1998
|
navbar
|
|
1999
1999
|
};
|
|
@@ -2091,7 +2091,7 @@ const HamburgerMenu = ({
|
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
}) => {
|
|
2094
|
-
const { translations } = useMenuContext();
|
|
2094
|
+
const { translations, navAriaLabel } = useMenuContext();
|
|
2095
2095
|
const siteScrollBlocker = useService(SiteScrollBlockerDefinition);
|
|
2096
2096
|
const [isOpen, setIsOpen] = useState(false);
|
|
2097
2097
|
useEffect(() => {
|
|
@@ -2145,18 +2145,22 @@ const HamburgerMenu = ({
|
|
|
2145
2145
|
const { containerRef: focusTrapRef } = useFocusTrap(isOpen);
|
|
2146
2146
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2147
2147
|
/* @__PURE__ */ jsx(
|
|
2148
|
-
|
|
2148
|
+
"nav",
|
|
2149
2149
|
{
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2150
|
+
"aria-label": navAriaLabel || translations.menuNavAriaLabel,
|
|
2151
|
+
className: classes.openButtonNavigation,
|
|
2152
|
+
children: /* @__PURE__ */ jsx(
|
|
2153
|
+
Button,
|
|
2154
|
+
{
|
|
2155
|
+
...hamburgerOpenButtonProps,
|
|
2156
|
+
a11y: {
|
|
2157
|
+
ariaLabel: translations.hamburgerOpenButtonAriaLabel,
|
|
2158
|
+
...hamburgerOpenButtonProps == null ? void 0 : hamburgerOpenButtonProps.a11y
|
|
2159
|
+
},
|
|
2160
|
+
className: selectors.hamburgerMenuOpenButton,
|
|
2161
|
+
onClick: () => setIsMenuOpen(true)
|
|
2162
|
+
}
|
|
2163
|
+
)
|
|
2160
2164
|
}
|
|
2161
2165
|
),
|
|
2162
2166
|
isOpen && /* @__PURE__ */ jsxs(
|
|
@@ -2167,6 +2171,9 @@ const HamburgerMenu = ({
|
|
|
2167
2171
|
classes.dialog,
|
|
2168
2172
|
animationClasses.dialog
|
|
2169
2173
|
),
|
|
2174
|
+
role: "dialog",
|
|
2175
|
+
"aria-modal": "true",
|
|
2176
|
+
"aria-label": navAriaLabel || translations.menuNavAriaLabel,
|
|
2170
2177
|
"data-animation-name": animationState.name,
|
|
2171
2178
|
"data-animation-state": animationState.phase,
|
|
2172
2179
|
ref: focusTrapRef,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2348.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -199,5 +199,5 @@
|
|
|
199
199
|
"registry": "https://registry.npmjs.org/",
|
|
200
200
|
"access": "public"
|
|
201
201
|
},
|
|
202
|
-
"falconPackageHash": "
|
|
202
|
+
"falconPackageHash": "3492566fc8e27a7b764fed940baa979d1504812eb8c1014fa544b592"
|
|
203
203
|
}
|