ensure form group styles correctly apply (#1477)

* ensure form group styles correctly apply

* removed log statement

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
pngwn 2022-06-07 23:42:03 +01:00 committed by GitHub
parent f374eec22d
commit 7664d950e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,10 @@
typeof style.rounded !== "boolean" ||
(typeof style.rounded === "boolean" && style.rounded);
$: rounded_style = get_styles({ rounded: rounded }, ["rounded"]).classes;
$: rounded_style =
typeof style.rounded === "boolean"
? get_styles({ rounded: rounded }, ["rounded"]).classes
: "";
$: visible_style = get_styles({ visible }, ["visible"]).classes;
</script>