optimized-react-component-library-xyz123 2.8.2 → 2.8.3
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.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3860,15 +3860,18 @@ var Navigation = ({
|
|
|
3860
3860
|
}
|
|
3861
3861
|
return "\xD6ppna undermeny f\xF6r " + label["sv"];
|
|
3862
3862
|
};
|
|
3863
|
-
const setInstruction = ()
|
|
3863
|
+
const [instruction, setInstruction] = (0, import_react16.useState)("");
|
|
3864
|
+
(0, import_react16.useEffect)(() => {
|
|
3864
3865
|
if (firstVisitRef.current) {
|
|
3865
3866
|
firstVisitRef.current = false;
|
|
3866
|
-
return
|
|
3867
|
+
return;
|
|
3867
3868
|
}
|
|
3868
|
-
|
|
3869
|
-
|
|
3869
|
+
setInstruction(
|
|
3870
|
+
isOpen ? activatedLanguage === "sv" ? "Navigationsmenyn \xF6ppnades" : "Navigation menu opened" : activatedLanguage === "sv" ? "Navigationsmenyn st\xE4ngdes" : "Navigation menu closed"
|
|
3871
|
+
);
|
|
3872
|
+
}, [isOpen, activatedLanguage]);
|
|
3870
3873
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
3871
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { "aria-live": "polite", className: "sr-only", children:
|
|
3874
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { "aria-live": "polite", className: "sr-only", children: instruction }),
|
|
3872
3875
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
3873
3876
|
"nav",
|
|
3874
3877
|
{
|