Loading
fix: #3605959 Remove SDC prop default values that are not members of their enum
Fixes #3605959.
What this does
The Heading and View Summary components declared props with an enum but a default value that is not a member of that enum, which is invalid against the SDC component schema.
atoms/heading: removesdefault: ""fromtext_size,text_color,align,font_weight,font_style. The Twig already falls back viaprop|default(''), so behaviour is unchanged. Important: the empty string is not added to the enum — Heading is a Drupal Canvas component, and an empty-string enum option makes Canvas refuse to register the component.organisms/views-view-summary: sets thetypedefault to'ul'(a valid enum member; the prop is otherwise hard-coded in the template).
Testing
Validated on Drupal 11 + Varbase 11: component schemas validate, the Heading component registers and renders in Drupal Canvas, and a generated sub-theme inherits the fix with zero console and zero watchdog errors.
AI usage disclosure
AI-Generated: Yes — an AI assistant helped implement this change; all code was reviewed and tested by the contributor, per the Drupal policy on the use of AI when contributing to Drupal.
Checkpoints
- File an issue about this project
- Addition/Change/Update/Fix to this project
- Testing to ensure no regression
- Automated unit/functional testing coverage
- Developer Documentation support on feature change/addition
- User Guide Documentation support on feature change/addition
- UX/UI designer responsibilities
- Accessibility and Readability
- Code review from 1 Varbase core team member
- Full testing and approval
- Credit contributors
- Review with the product owner
- Update Release Notes and Update Helper on new feature change/addition
- Release
Edited by Rajab Natshah