ui/fieldset: use normal div, due to webkit layout bug for fieldsets

This commit is contained in:
Johannes Kirschbauer
2025-09-03 21:00:54 +02:00
parent aaaa310c7f
commit fd9dd6f872
2 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
fieldset { .fieldset {
@apply flex flex-col w-full; @apply flex flex-col w-full;
legend { legend {

View File

@@ -35,10 +35,10 @@ export const Fieldset = (props: FieldsetProps) => {
: props.children; : props.children;
return ( return (
<fieldset <div
role="group" role="group"
class={cx({ inverted: props.inverted })} class={cx("fieldset", { inverted: props.inverted })}
disabled={props.disabled || false} aria-disabled={props.disabled || undefined}
> >
{props.legend && ( {props.legend && (
<legend> <legend>
@@ -69,6 +69,6 @@ export const Fieldset = (props: FieldsetProps) => {
</Typography> </Typography>
</div> </div>
)} )}
</fieldset> </div>
); );
}; };