Skip to content

Commit

Permalink
fix: floating label noLabel default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Apr 12, 2021
1 parent 383268d commit cf06c28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/notched-outline/NotchedOutline.svelte
Expand Up @@ -43,7 +43,7 @@
let className = '';
export { className as class };
export let notched = false;
export let noLabel = true;
export let noLabel = false;
let element;
let instance;
Expand Down
14 changes: 12 additions & 2 deletions site/src/routes/demo/textfield/index.svelte
Expand Up @@ -678,10 +678,14 @@
<Textfield
bind:input={inputManualInputC}
bind:notchedOutline={inputManualNotchedOutlineC}
bind:floatingLabel={inputManualFloatingLabelC}
variant="outlined"
>
<NotchedOutline bind:this={inputManualNotchedOutlineC} slot="label">
<FloatingLabel for="input-manual-c">Outlined</FloatingLabel>
<FloatingLabel
bind:this={inputManualFloatingLabelC}
for="input-manual-c">Outlined</FloatingLabel
>
</NotchedOutline>
<Icon class="material-icons" slot="leadingIcon">event</Icon>
<Input
Expand All @@ -702,10 +706,14 @@
<Textfield
bind:input={inputManualInputD}
bind:notchedOutline={inputManualNotchedOutlineD}
bind:floatingLabel={inputManualFloatingLabelD}
textarea
>
<NotchedOutline bind:this={inputManualNotchedOutlineD} slot="label">
<FloatingLabel for="input-manual-d">Textarea</FloatingLabel>
<FloatingLabel
bind:this={inputManualFloatingLabelD}
for="input-manual-d">Textarea</FloatingLabel
>
</NotchedOutline>
<Textarea
bind:this={inputManualInputD}
Expand Down Expand Up @@ -800,10 +808,12 @@
let valueManualC = '';
let inputManualInputC;
let inputManualNotchedOutlineC;
let inputManualFloatingLabelC;
let valueManualD = '';
let inputManualInputD;
let inputManualNotchedOutlineD;
let inputManualFloatingLabelD;
function clickableHandler() {
alert(`Sending to ${valueClickable}!`);
Expand Down

0 comments on commit cf06c28

Please sign in to comment.