Ensure consistent size of form fields regardless of label position
This commit is contained in:
parent
7984382552
commit
79ae7dae91
|
@ -9,9 +9,9 @@
|
|||
</script>
|
||||
|
||||
<div use:styleable={$component.styles}>
|
||||
<form
|
||||
<div
|
||||
class="spectrum-Form"
|
||||
class:spectrum-Form--labelsAbove={labelPosition === 'above'}>
|
||||
<slot />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -56,6 +56,10 @@
|
|||
</FieldGroupFallback>
|
||||
|
||||
<style>
|
||||
.spectrum-Form-itemField {
|
||||
width: 360px;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: var(
|
||||
--spectrum-semantic-negative-color-default,
|
||||
|
|
Loading…
Reference in New Issue