Skip to content

Commit

Permalink
Merge pull request #782 from intuitem/hotfix/disable-text-area
Browse files Browse the repository at this point in the history
style: add disabled class for text area in forms
  • Loading branch information
nas-tabchiche authored Sep 2, 2024
2 parents 53d3dc6 + 54ce2fc commit 6631c89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/lib/components/Forms/TextArea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
});
$: classesTextField = (errors: string[] | undefined) => (errors ? 'input-error' : '');
$: classesDisabled = (disabled: boolean) => (disabled ? 'opacity-50' : '');
</script>

<div class={regionContainer}>
<div class={classesDisabled($$props.disabled)}>
{#if label !== undefined && !$$props.hidden}
{#if $constraints?.required}
<label class="text-sm font-semibold" for={field}
Expand Down

0 comments on commit 6631c89

Please sign in to comment.