Skip to content

Commit

Permalink
button improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
andz-bb committed Apr 27, 2023
1 parent fdbe4ab commit e2cee95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geolocation",
"version": "0.3.2",
"version": "0.3.3",
"description": "A form field that provides the user's current geolocation",
"author": "andz-bb",
"license": "MIT",
Expand Down
14 changes: 7 additions & 7 deletions src/Component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@
{label || " "}
</label>
<div class="spectrum-Form-itemField">
<button
class="spectrum-ActionButton spectrum-ActionButton--sizeM"
on:click={getLocation}
{disabled}
>
<span class="spectrum-ActionButton-label">Get Location</span>
</button>
{#if !disabled}
<button
on:click={getLocation}
class="spectrum-Button spectrum-Button--fill spectrum-Button--sizeM spectrum-Button--primary"
>Get Location</button
>
{/if}
<p>{latitude}</p>
<p>{longitude}</p>
Expand Down

0 comments on commit e2cee95

Please sign in to comment.