ui/fieldset: use normal div, due to webkit layout bug for fieldsets
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
fieldset {
|
.fieldset {
|
||||||
@apply flex flex-col w-full;
|
@apply flex flex-col w-full;
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user