@navikt/ds-react 5.0.2 → 5.0.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.
@@ -72,6 +72,6 @@ exports.ConfirmationPanel = (0, react_1.forwardRef)((_a, ref) => {
72
72
  react_1.default.createElement("div", { className: "navds-confirmation-panel__inner" },
73
73
  children && (react_1.default.createElement(__1.BodyLong, { size: props.size, className: "navds-confirmation-panel__content", id: `confirmation-panel-${id}`, as: "div" }, children)),
74
74
  react_1.default.createElement(__1.Checkbox, Object.assign({ ref: ref }, props, inputProps, { "aria-describedby": (0, clsx_1.default)(inputProps["aria-describedby"], children && `confirmation-panel-${id}`), error: hasError, size: size }), label)),
75
- react_1.default.createElement("div", { className: "navds-form-field__error", id: errorId, "aria-relevant": "additions removals", "aria-live": "polite" }, showErrorMsg && react_1.default.createElement(__1.ErrorMessage, { size: size }, props.error))));
75
+ react_1.default.createElement("div", { className: "navds-form-field__error", id: errorId, role: "alert" }, showErrorMsg && react_1.default.createElement(__1.ErrorMessage, { size: size }, props.error))));
76
76
  });
77
77
  exports.default = exports.ConfirmationPanel;
@@ -43,7 +43,7 @@ export const ConfirmationPanel = forwardRef((_a, ref) => {
43
43
  React.createElement("div", { className: "navds-confirmation-panel__inner" },
44
44
  children && (React.createElement(BodyLong, { size: props.size, className: "navds-confirmation-panel__content", id: `confirmation-panel-${id}`, as: "div" }, children)),
45
45
  React.createElement(Checkbox, Object.assign({ ref: ref }, props, inputProps, { "aria-describedby": cl(inputProps["aria-describedby"], children && `confirmation-panel-${id}`), error: hasError, size: size }), label)),
46
- React.createElement("div", { className: "navds-form-field__error", id: errorId, "aria-relevant": "additions removals", "aria-live": "polite" }, showErrorMsg && React.createElement(ErrorMessage, { size: size }, props.error))));
46
+ React.createElement("div", { className: "navds-form-field__error", id: errorId, role: "alert" }, showErrorMsg && React.createElement(ErrorMessage, { size: size }, props.error))));
47
47
  });
48
48
  export default ConfirmationPanel;
49
49
  //# sourceM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ACvE,iCAAiC,EAAE,IAAI,KAAK,OAAO;YACnD,iCAAiC,EAAE,QAAQ;YAC3C,mCAAmC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO;SACrD,CAAC;QAEF,6BAAK,SAAS,EAAC,iCAAiC;YAC7C,QAAQ,IAAI,CACX,oBAAC,QAAQ,IACP,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,SAAS,EAAC,mCAAmC,EAC7C,EAAE,EAAE,sBAAsB,EAAE,EAAE,EAC9B,EAAE,EAAC,KAAK,IAEP,QAAQ,CACA,CACZ;YACD,oBAAC,QAAQ,kBACP,GAAG,EAAE,GAAG,IACJ,KAAK,EACL,UAAU,wBACI,EAAE,CAClB,UAAU,CAAC,kBAAkB,CAAC,EAC9B,QAAQ,IAAI,sBAAsB,EAAE,EAAE,CACvC,EACD,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,KAET,KAAK,CACG,CACP;QACN,6BAAK,SAAS,EAAC,yBAAyB,EAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAC,OAAO,IAC/D,YAAY,IAAI,oBAAC,YAAY,IAAC,IAAI,EAAE,IAAI,IAAG,KAAK,CAAC,KAAK,CAAgB,CACnE,CACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-react",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "Aksel react-components for NAV designsystem",
5
5
  "author": "Aksel | NAV designsystem team",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@floating-ui/react": "0.24.1",
41
- "@navikt/aksel-icons": "^5.0.2",
41
+ "@navikt/aksel-icons": "^5.0.3",
42
42
  "@radix-ui/react-tabs": "1.0.0",
43
43
  "@radix-ui/react-toggle-group": "1.0.0",
44
44
  "clsx": "^1.2.1",
@@ -88,12 +88,7 @@ export const ConfirmationPanel = forwardRef<
88
88
  {label}
89
89
  </Checkbox>
90
90
  </div>
91
- <div
92
- className="navds-form-field__error"
93
- id={errorId}
94
- aria-relevant="additions removals"
95
- aria-live="polite"
96
- >
91
+ <div className="navds-form-field__error" id={errorId} role="alert">
97
92
  {showErrorMsg && <ErrorMessage size={size}>{props.error}</ErrorMessage>}
98
93
  </div>
99
94
  </div>
@@ -1,7 +1,8 @@
1
- import React, { useState } from "react";
2
- import { ConfirmationPanel } from "../index";
3
1
  import { Meta } from "@storybook/react";
2
+ import React, { useState } from "react";
4
3
  import { Link } from "../..";
4
+ import { ConfirmationPanel } from "../index";
5
+
5
6
  export default {
6
7
  title: "ds-react/ConfirmationPanel",
7
8
  component: ConfirmationPanel,