aloha-vue 1.2.262 → 1.2.263

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/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "Vue.js"
15
15
  ],
16
16
  "homepage": "https://github.com/ilia-brykin/aloha/#README.md",
17
- "version": "1.2.262",
17
+ "version": "1.2.263",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -249,6 +249,7 @@ export default {
249
249
  const {
250
250
  attributesMenuClick,
251
251
  attributesMobile,
252
+ headerId,
252
253
  } = MenuAttributesAPI(props, {
253
254
  isMenuOpen,
254
255
  toggleMenu,
@@ -375,6 +376,7 @@ export default {
375
376
  clickOnSearchBtn,
376
377
  dataKeyById,
377
378
  dataProParent,
379
+ headerId,
378
380
  isBackdropVisible,
379
381
  isLeastOnePanelOpenAndMenuClosed,
380
382
  isMenuOpen,
@@ -399,6 +401,7 @@ export default {
399
401
  return h("nav", {
400
402
  ref: "menuRef",
401
403
  id: this.menuId,
404
+ "aria-labelledby": this.headerId,
402
405
  class: [
403
406
  "a_menu_2",
404
407
  {
@@ -438,6 +441,7 @@ export default {
438
441
  class: "a_menu_2__navbar_top_sub",
439
442
  }, [
440
443
  h(ATranslation, {
444
+ id: this.headerId,
441
445
  class: "a_menu_2__navbar_top_sub__text",
442
446
  tag: "strong",
443
447
  text: "_A_MENU_2_MAIN_MENU_",
@@ -11,6 +11,7 @@ export default function MenuAttributesAPI(props, {
11
11
  toggleMenu = () => {},
12
12
  }) {
13
13
  const isBlockerClickable = toRef(props, "isBlockerClickable");
14
+ const menuId = toRef(props, "menuId");
14
15
 
15
16
  const {
16
17
  isMobileWidth,
@@ -27,6 +28,10 @@ export default function MenuAttributesAPI(props, {
27
28
  return {};
28
29
  });
29
30
 
31
+ const headerId = computed(() => {
32
+ return `${ menuId.value }_header`;
33
+ });
34
+
30
35
  const attributesMenuClick = computed(() => {
31
36
  const ATTRIBUTES = {};
32
37
  if (isBlockerClickable.value &&
@@ -40,5 +45,6 @@ export default function MenuAttributesAPI(props, {
40
45
  return {
41
46
  attributesMenuClick,
42
47
  attributesMobile,
48
+ headerId,
43
49
  };
44
50
  }