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 40f9eca commit fcb7443
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!--
Copyright (c) 2024 Anthony Mugendi
This software is released under the MIT License.
https://opensource.org/licenses/MIT
-->


[Examples](https://mugendi.github.io/docs/svelte-former/)
2 changes: 1 addition & 1 deletion build/svelte-former.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Main.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
</div>

<div class="row">
<div class="control-buttons">
<div class="svlete-former-control-buttons">
<Buttons {buttons} {formEl} />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/elements/Control.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
</script>

<div class={control.classes.join(" ")}>
<div class="control-group{control.error ? ' has-error' : ''} {type || ' content'} ">
<div class="svlete-former-control-group{control.error ? ' has-error' : ''} {type || ' content'} ">
{#if control.element == "input"}
<Input bind:control {onChange} />
{:else if control.element == "select"}
Expand Down
4 changes: 2 additions & 2 deletions src/styles/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
*/

.former {
.control-buttons {
.svlete-former-control-buttons {
padding: 10px;
margin: 2px 0;
}
.control-group {
.svlete-former-control-group {
padding: 5px;
border-radius: 10px;
border: 1px solid #fafafa;
Expand Down

0 comments on commit fcb7443

Please sign in to comment.