Skip to content

Commit

Permalink
fix(Button): remove illegal div wrapping children
Browse files Browse the repository at this point in the history
  • Loading branch information
matthprost committed Jan 23, 2025
1 parent fddc860 commit e6d79d7
Show file tree
Hide file tree
Showing 7 changed files with 1,618 additions and 2,193 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-yaks-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": patch
---

Fix `<Button />` to remove illegal div in children when text as children
Original file line number Diff line number Diff line change
Expand Up @@ -321,18 +321,16 @@ exports[`NumberInputField > should render correctly 1`] = `
disabled=""
type="button"
>
<div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
clip-rule="evenodd"
d="M4 9.75A.75.75 0 0 1 4.75 9h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 9.75"
fill-rule="evenodd"
/>
</svg>
</div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
clip-rule="evenodd"
d="M4 9.75A.75.75 0 0 1 4.75 9h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 9.75"
fill-rule="evenodd"
/>
</svg>
</button>
<div
aria-live="assertive"
Expand All @@ -357,16 +355,14 @@ exports[`NumberInputField > should render correctly 1`] = `
class="emotion-6 emotion-18 emotion-8"
type="button"
>
<div>
<svg
class="emotion-20 emotion-10"
viewBox="0 0 20 20"
>
<path
d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5z"
/>
</svg>
</div>
<svg
class="emotion-20 emotion-10"
viewBox="0 0 20 20"
>
<path
d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5z"
/>
</svg>
</button>
</div>
</div>
Expand Down Expand Up @@ -626,18 +622,16 @@ exports[`NumberInputField > should render correctly disabled 1`] = `
disabled=""
type="button"
>
<div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
clip-rule="evenodd"
d="M4 9.75A.75.75 0 0 1 4.75 9h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 9.75"
fill-rule="evenodd"
/>
</svg>
</div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
clip-rule="evenodd"
d="M4 9.75A.75.75 0 0 1 4.75 9h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 9.75"
fill-rule="evenodd"
/>
</svg>
</button>
<div
aria-live="assertive"
Expand All @@ -664,16 +658,14 @@ exports[`NumberInputField > should render correctly disabled 1`] = `
disabled=""
type="button"
>
<div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5z"
/>
</svg>
</div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5z"
/>
</svg>
</button>
</div>
</div>
Expand Down Expand Up @@ -1003,18 +995,16 @@ exports[`NumberInputField > should trigger event onMinCrossed & onMaxCrossed 1`]
class="emotion-6 emotion-7 emotion-8"
type="button"
>
<div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
clip-rule="evenodd"
d="M4 9.75A.75.75 0 0 1 4.75 9h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 9.75"
fill-rule="evenodd"
/>
</svg>
</div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
clip-rule="evenodd"
d="M4 9.75A.75.75 0 0 1 4.75 9h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 9.75"
fill-rule="evenodd"
/>
</svg>
</button>
<div
aria-live="assertive"
Expand All @@ -1040,16 +1030,14 @@ exports[`NumberInputField > should trigger event onMinCrossed & onMaxCrossed 1`]
disabled=""
type="button"
>
<div>
<svg
class="emotion-20 emotion-10"
viewBox="0 0 20 20"
>
<path
d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5z"
/>
</svg>
</div>
<svg
class="emotion-20 emotion-10"
viewBox="0 0 20 20"
>
<path
d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5z"
/>
</svg>
</button>
</div>
</div>
Expand Down Expand Up @@ -1317,18 +1305,16 @@ exports[`NumberInputField > should trigger events correctly 1`] = `
class="emotion-6 emotion-7 emotion-8"
type="button"
>
<div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
clip-rule="evenodd"
d="M4 9.75A.75.75 0 0 1 4.75 9h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 9.75"
fill-rule="evenodd"
/>
</svg>
</div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
clip-rule="evenodd"
d="M4 9.75A.75.75 0 0 1 4.75 9h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 9.75"
fill-rule="evenodd"
/>
</svg>
</button>
<div
aria-live="assertive"
Expand All @@ -1353,16 +1339,14 @@ exports[`NumberInputField > should trigger events correctly 1`] = `
class="emotion-6 emotion-7 emotion-8"
type="button"
>
<div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5z"
/>
</svg>
</div>
<svg
class="emotion-9 emotion-10"
viewBox="0 0 20 20"
>
<path
d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5z"
/>
</svg>
</button>
</div>
</div>
Expand Down
Loading

0 comments on commit e6d79d7

Please sign in to comment.