style: remove highlight from new post textarea (#301)

This commit is contained in:
Barbara Gomes 2023-03-30 12:14:13 -04:00 committed by GitHub
parent cf22bbdd62
commit a063406c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -76,7 +76,7 @@
{/each}
</div>
<div class="post-content">
<Textarea bind:value={postText} placeholder="Write here..." autofocus />
<Textarea noHighlight bind:value={postText} placeholder="Write here..." autofocus />
</div>
</div>

View File

@ -5,6 +5,7 @@
export let placeholder = ''
export let label = ''
export let autofocus = false
export let noHighlight: boolean | undefined = undefined
let placeholderHeight: number
let textarea: HTMLTextAreaElement
@ -39,7 +40,7 @@
})
</script>
<label>
<label class={noHighlight ? '' : 'highlight'}>
{label}
<div class="area-placeholder">
<div
@ -65,7 +66,7 @@
background-color: transparent;
transition: background-color 0.2s;
&:focus-within {
&.highlight:focus-within {
background-color: var(--grey-150);
transition: background-color 0.2s;
}