aloha-vue 1.2.183 → 1.2.184

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.183",
17
+ "version": "1.2.184",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -442,16 +442,24 @@ export default {
442
442
  disabled: !this.inBody,
443
443
  }, [
444
444
  this.isMenuRendered && withDirectives(h(
445
- this.dropdownTag,
446
- this.dropdownAttributesLocal,
445
+ "div",
446
+ {
447
+ ref: "dropdownRef",
448
+ role: "application",
449
+ "aria-labelledby": this.idLocal,
450
+ ariaHidden: !this.statusExpanded,
451
+ ...this.dropdownAttributesLocal,
452
+ },
447
453
  [
448
- this.$slots.dropdown && this.$slots.dropdown(),
449
- this.hasActions && this.actionsFiltered.map((action, actionIndex) => {
450
- return h(ADropdownAction, {
451
- key: actionIndex,
452
- action,
453
- }, this.$slots);
454
- }),
454
+ h(this.dropdownTag, {}, [
455
+ this.$slots.dropdown && this.$slots.dropdown(),
456
+ this.hasActions && this.actionsFiltered.map((action, actionIndex) => {
457
+ return h(ADropdownAction, {
458
+ key: actionIndex,
459
+ action,
460
+ }, this.$slots);
461
+ }),
462
+ ]),
455
463
  ],
456
464
  ), [
457
465
  [AOnHooks, {
@@ -52,10 +52,6 @@ export default function AttributesAPI(props, {
52
52
 
53
53
  const dropdownAttributesLocal = computed(() => {
54
54
  const DROPDOWN_ATTRIBUTES = cloneDeep(dropdownAttributes.value);
55
- DROPDOWN_ATTRIBUTES.ref = "dropdownRef";
56
- DROPDOWN_ATTRIBUTES.role = "application";
57
- DROPDOWN_ATTRIBUTES["aria-labelledby"] = idLocal.value;
58
- DROPDOWN_ATTRIBUTES["aria-hidden"] = !statusExpanded.value;
59
55
  DROPDOWN_ATTRIBUTES.class = ["a_dropdown__menu", dropdownClass.value, {
60
56
  a_dropdown__menu_show: statusExpanded.value,
61
57
  }];
@@ -36,6 +36,11 @@
36
36
  }
37
37
  .a_dropdown__menu {
38
38
  box-shadow: 0 0 7px 3px var(--a_color_gray_600);
39
+ > ul {
40
+ margin: 0;
41
+ list-style: none;
42
+ padding: 0;
43
+ }
39
44
  }
40
45
 
41
46
  @import "components/AIcon";