@avakhula/ui 0.1.8 → 0.1.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avakhula/ui",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -5,7 +5,8 @@
5
5
  :id="'accordion' + uuid"
6
6
  :aria-controls="'accordion-section-' + uuid"
7
7
  :aria-expanded="isActive"
8
- @click="onClick"
8
+ type="button"
9
+ @click.prevent="onClick"
9
10
  >
10
11
  <slot name="title"></slot>
11
12
 
@@ -26,7 +27,7 @@
26
27
  :aria-labelledby="'accordion' + uuid"
27
28
  >
28
29
  <div class="accordion-content-wrapper">
29
- <slot name="content"></slot>
30
+ <slot></slot>
30
31
  </div>
31
32
  </div>
32
33
  </Transition>
@@ -99,10 +99,6 @@ $switcher-circle: $white;
99
99
  background-color: $switcher-slider-on;
100
100
  }
101
101
 
102
- input:disabled + .toggle-slider {
103
- background-color: $switcher-slider-disabled;
104
- }
105
-
106
102
  input:checked + .toggle-slider:before {
107
103
  transform: translateX(14px);
108
104
  }
@@ -162,5 +158,9 @@ $switcher-circle: $white;
162
158
  .toggle-label {
163
159
  color: $switcher-slider-disabled;
164
160
  }
161
+
162
+ input:disabled + .toggle-slider {
163
+ background-color: $switcher-slider-disabled;
164
+ }
165
165
  }
166
166
  }