Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
mugendi committed May 2, 2024
1 parent 89095cc commit 0c21d59
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/svelte-former.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/elements/Label.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
export let control;
export let id;
export let label;
export let cls = "label";
export let cls = "svelte-former-label";
label = merge(typeof control.label == "object" ? control.label : {}, {
text: label || control.label.text || control.label,
Expand Down
4 changes: 2 additions & 2 deletions src/elements/controls/Input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{#if type == "radio"}
<div class="label-container">
<div>
<Label bind:control cls="label pad-left"/>
<Label bind:control cls="svelte-former-label pad-left"/>

<div class="radio-control" bind:this={control.node}>
{#each control.options as option, i}
Expand All @@ -51,7 +51,7 @@
bind:control
label={option.text || option}
id={control.attributes.id + "-" + (i + 1)}
cls="label small"
cls="svelte-former-label small"
/>
{/each}
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/styles/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
text-wrap: nowrap;
margin-top: 5px;

.label, input {
.svelte-former-label, input {
display: inline-block;
}

}

.label {
.svelte-former-label {
font-size: 1rem;
font-weight: 600;
margin-right: 5px;
Expand Down

0 comments on commit 0c21d59

Please sign in to comment.