Skip to content

Commit be53a14

Browse files
dflclaude
andcommitted
Fix label-to-input spacing lost in error state on Input, Currency, and Select
Rails wraps fields in div.field_with_errors on validation errors; display:inline prevented space-y margin-top from applying, collapsing the 8px gap. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 18128c4 commit be53a14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • app/assets/stylesheets/cfa_ui_components/components

app/assets/stylesheets/cfa_ui_components/components/forms.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ select {
171171

172172

173173
.field_with_errors {
174-
display: inline;
174+
display: block;
175175
input {
176176
border-color: var(--color-border-error) !important;
177177
}

0 commit comments

Comments
 (0)