Skip to content

Commit

Permalink
Merge pull request #1530 from DissNik/3.x
Browse files Browse the repository at this point in the history
chore: validation errors for vertical json
  • Loading branch information
lee-to authored Feb 8, 2025
2 parents 3caaeb9 + df01fdd commit a07ec54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/UI/resources/css/components/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ input[type='number'] {

/* Form Error */
.form-error {
@apply !mt-0 text-3xs text-red-600 dark:text-red-500;
@apply !mt-0 col-span-12 text-3xs text-red-600 dark:text-red-500;
}

/* Form Switcher */
Expand Down
2 changes: 1 addition & 1 deletion src/UI/src/Fields/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public function getComponent(): ComponentContract
? Column::make()->columnSpan($this->verticalValueSpan)
/** @var Column $default */
/** @phpstan-ignore-next-line */
: $default->columnSpan($this->verticalValueSpan) : null,
: $default->columnSpan($this->verticalValueSpan)->customAttributes(['data-validation-wrapper' => true]) : null,
),
)
->when(
Expand Down

0 comments on commit a07ec54

Please sign in to comment.