Overview

User has no way of knowing that a required prop needs an example value on the props form.

Proposed resolution

1. If a user toggles the required, prefill with example value if it is empty
2. If a user clears the example value on a require prop, display a validation error message in the UI "Required prop must have an example value"

User interface changes

gif

CommentFileSizeAuthor
#10 required-example.gif309.85 KBhooroomoo

Issue fork canvas-3574668

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hooroomoo created an issue. See original summary.

hooroomoo changed the visibility of the branch 3574668-user-has-no to hidden.

hooroomoo’s picture

hooroomoo’s picture

crediting @mayur-sose for surfacing this

hooroomoo’s picture

Status: Active » Needs review
hooroomoo’s picture

Assigned: hooroomoo » Unassigned
nagwani’s picture

Issue tags: +triaged
wim leers’s picture

hooroomoo’s picture

Issue summary: View changes
Issue tags: -JavaScript, -Needs screenshots +JavaScript
StatusFileSize
new309.85 KB

Added gif in issue summary so removing needs screenshots tag

hooroomoo’s picture

ready for review again

  • hooroomoo committed 912a8c64 on 1.x
    feat(Theme builder): #3574668 User has no way of knowing that a required...
hooroomoo’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

wim leers’s picture

Lovely! 🤩 And thanks for the screenshot to make it easy for me & others to see the result! 😊

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.