Problem/Motivation

Getting the following error when placing the hero component in the xb canvas
An exception has been thrown during the rendering of a template (\"[starshot_demo:starshot-hero/padding] Does not have a value in the enumeration [\"default\",\"header\"]. The provided value is: \"\".\").

Steps to reproduce

Setup xb with sdds theme
Open the xb ui and try to place the hero component
https://www.drupal.org/files/issues/2025-04-15/sdds-hero-xb.gif

Proposed resolution

Adding the 'examples' key to the 'padding' prop fixes the issue

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
sdds-hero-xb.gif712.36 KBakhil babu
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

akhil babu created an issue. See original summary.

akhil babu’s picture

Issue summary: View changes

akhil babu’s picture

Status: Active » Needs review

Please review

heyyo’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.
Even if I don't understand why we need example(s) for enum, which already provides a fixed list of options for the select...

kristen pol made their first commit to this issue’s fork.

kristen pol’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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