kirby icon indicating copy to clipboard operation
kirby copied to clipboard

Consistent styling for invalid fields (e.g. empty required)

Open teichsta opened this issue 2 years ago • 1 comments

Description

As discussed in https://forum.getkirby.com/t/required-field-on-block-blueprint-image-not-shows-as-invalid/24793?u=teichsta i realised an inconsistend behaviour of required fields. Some fields like pages, files and text do show a nice red border indicating the required attribute. Other fields like writer and textarea don't

Expected behavior

All field types should show the red border indicating the required attribute for better UX.

Screenshots

image

  banner_image:
    label: field.blocks.image.name
    type: files
    multiple: false
    required: true
    image:
      back: black
    uploads:
      template: poolfile
  credits:
    label: Quellenangabe
    type: writer
    inline: true
    icon: text
    required: true

Your setup

Kirby Version
kirby 3.5.7.1 and 3.6.2

teichsta avatar Feb 22 '22 10:02 teichsta

This issue has been automatically marked as stale because it has not had recent activity. This is for us to prioritize issues that are still relevant to our community. It will be closed if no further activity occurs within the next 14 days. If this issue is still relevant to you, please leave a comment.

github-actions[bot] avatar Sep 05 '22 00:09 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. This is for us to prioritize issues that are still relevant to our community. It will be closed if no further activity occurs within the next 14 days. If this issue is still relevant to you, please leave a comment.

github-actions[bot] avatar Mar 06 '23 00:03 github-actions[bot]

Solved with v4

distantnative avatar Oct 08 '23 11:10 distantnative