@aiaiai-pt/design-system 0.8.0 → 0.8.1

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.
@@ -43,12 +43,19 @@
43
43
  </script>
44
44
 
45
45
  <div class="toggle-group {className}">
46
+ <!--
47
+ type="button" is critical: a default <button> inside a <form> is
48
+ type="submit", so every Toggle click inside a form was silently
49
+ submitting it. Declared BEFORE {...rest} so the consumer can still
50
+ override (e.g. type="submit" if they really want submit semantics).
51
+ -->
46
52
  <button
47
53
  id={toggleId}
48
54
  class="toggle"
49
55
  class:toggle-on={checked}
50
56
  class:toggle-disabled={disabled}
51
57
  {disabled}
58
+ type="button"
52
59
  role="switch"
53
60
  aria-checked={checked}
54
61
  aria-labelledby={label ? `${toggleId}-label` : undefined}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiaiai-pt/design-system",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Design system tokens and Svelte components for aiaiai products",
5
5
  "license": "MIT",
6
6
  "type": "module",