@pantheon-systems/pds-toolkit-react 1.0.0-dev.205 → 1.0.0-dev.206

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 CHANGED
@@ -828,7 +828,7 @@ const Xe = () => Math.random().toString(32).substring(2, 13), pt = (t, s) => {
828
828
  n ? null : "visually-hidden",
829
829
  m != null ? m : ""
830
830
  ]);
831
- return o ? /* @__PURE__ */ e.createElement("legend", { className: r, id: `${t}-legend` }, s, c && !a && /* @__PURE__ */ e.createElement(u1, null)) : l ? /* @__PURE__ */ e.createElement("span", { className: r, id: `${t}-field-label` }, s, c && !a && /* @__PURE__ */ e.createElement(u1, null)) : /* @__PURE__ */ e.createElement("label", { htmlFor: t, className: r, id: "select-label" }, s, c && !a && /* @__PURE__ */ e.createElement(u1, null));
831
+ return o ? /* @__PURE__ */ e.createElement("legend", { className: r, id: `${t}-legend` }, s, c && !a && /* @__PURE__ */ e.createElement(u1, null)) : l ? /* @__PURE__ */ e.createElement("span", { className: r, id: `${t}-field-label` }, s, c && !a && /* @__PURE__ */ e.createElement(u1, null)) : /* @__PURE__ */ e.createElement("label", { htmlFor: t, className: r, id: `${t}-label` }, s, c && !a && /* @__PURE__ */ e.createElement(u1, null));
832
832
  }, xe = ({
833
833
  id: t,
834
834
  message: s,
@@ -1063,8 +1063,7 @@ const Xe = () => Math.random().toString(32).substring(2, 13), pt = (t, s) => {
1063
1063
  id: n,
1064
1064
  tabIndex: 0,
1065
1065
  ref: ce.setReference,
1066
- "aria-label": "select-label",
1067
- "aria-labelledby": "select-label",
1066
+ "aria-labelledby": `${n}-label`,
1068
1067
  "aria-autocomplete": "none"
1069
1068
  }, Ce({
1070
1069
  onClick: Oe,