@fremtind/jkl-core
Advanced tools
Comparing version 14.8.6 to 14.8.7
@@ -45,2 +45,3 @@ "use strict"; | ||
const Component = as; | ||
const srId = (0, import_react.useId)(); | ||
return /* @__PURE__ */ import_react.default.createElement( | ||
@@ -53,7 +54,9 @@ Component, | ||
}), | ||
"aria-describedby": external ? srId : void 0, | ||
...rest | ||
}, | ||
children | ||
children, | ||
external && /* @__PURE__ */ import_react.default.createElement("span", { hidden: true, id: srId }, "Ekstern lenke") | ||
); | ||
}); | ||
//# sourceMappingURL=Link.js.map |
import cn from "classnames"; | ||
import React from "react"; | ||
import React, { useId } from "react"; | ||
const Link = React.forwardRef(function Link2(props, ref) { | ||
@@ -12,2 +12,3 @@ const { | ||
const Component = as; | ||
const srId = useId(); | ||
return /* @__PURE__ */ React.createElement( | ||
@@ -20,5 +21,7 @@ Component, | ||
}), | ||
"aria-describedby": external ? srId : void 0, | ||
...rest | ||
}, | ||
children | ||
children, | ||
external && /* @__PURE__ */ React.createElement("span", { hidden: true, id: srId }, "Ekstern lenke") | ||
); | ||
@@ -25,0 +28,0 @@ }); |
{ | ||
"name": "@fremtind/jkl-core", | ||
"version": "14.8.6", | ||
"version": "14.8.7", | ||
"publishConfig": { | ||
@@ -62,3 +62,3 @@ "access": "public" | ||
}, | ||
"gitHead": "320c8cc7ba88c3dac757509bcb4ca6e41a4c5a1a" | ||
"gitHead": "e48db08e05c28f9404c03e5b0d57fab02bb5d097" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
370807
5916