Skip to content

Commit

Permalink
Set squircle properties with px
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-harding committed Oct 6, 2024
1 parent 2f29635 commit 3fb9fe0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion demo/assets/js/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ export class Control extends HTMLElement {
_emitChange(input) {
const value = input.value;
const event = new CustomEvent("th-control__change", {
detail: { value, aspect: this._aspect },
detail: {
value: input.type === "range" ? `${value}px` : value,
aspect: this._aspect,
},
bubbles: true,
});
this.dispatchEvent(event);
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<body class="poppins-regular">
<th-tester>
<th-drag-area>
<th-squircle radius="16"></th-squircle>
<th-squircle></th-squircle>
<th-corner side="top-left"></th-corner>
<th-corner side="bottom-right"></th-corner>
</th-drag-area>
Expand Down

0 comments on commit 3fb9fe0

Please sign in to comment.