@visitscotland/component-library 5.3.5 → 5.3.7

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.
@@ -12968,6 +12968,15 @@ const FooterSocialMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _
12968
12968
  icon: {
12969
12969
  type: String,
12970
12970
  required: !0
12971
+ },
12972
+ /**
12973
+ * Overrides the social icon name in the aria label for the component if provided,
12974
+ * allowing specific or localised accessible text when it doesn't match up with the FA
12975
+ * name for the brand.
12976
+ */
12977
+ ariaLabelOverride: {
12978
+ type: String,
12979
+ default: ""
12971
12980
  }
12972
12981
  }
12973
12982
  }, _hoisted_1$12 = {
@@ -12981,7 +12990,7 @@ function _sfc_render$1c(e, n, t, a, r, s) {
12981
12990
  "data-test": "vs-footer-social-item__link",
12982
12991
  href: t.href,
12983
12992
  type: "external",
12984
- "aria-label": t.icon,
12993
+ "aria-label": t.ariaLabelOverride ? t.ariaLabelOverride : t.icon,
12985
12994
  "data-layer-value": "socialMediaExternalLinkDataEvent"
12986
12995
  }, {
12987
12996
  default: withCtx(() => [