fix: #3627276 Make story args satisfy their components' schemas

Fifteen stories passed values their own *.component.yml rejects, so SDC validation threw and they rendered an empty wrapper while still returning HTTP 200.

Fixed here: empty date on byline given a real date; empty color dropped from the five accordion-container stories (that prop is documented as optional, "Omit to use the default design"); icon_size '2'/'1.25' mapped to fs-2/fs-5; button icon download, not in the enum, changed to arrow-down. The matching article-teaser date fix rides along in the MR for #3627277, which already retitles that file.

accordion-container.stories.twig here also drops its six accordion-scripts attach calls, which belong to #3627274, for the same reason.

Issue: https://www.drupal.org/project/vartheme_bs5_rightup/issues/3627276

Measured: a sweep of all 398 stories, reading rendered content rather than status codes, drops the empty count from 28 to 18.

The remaining 18, so nobody re-finds them: thirteen are components whose SDC slot content never reaches the render endpoint (card-slider, hero-slider-container, live-feed, accordion-container, section, all of which declare slots); the rest are carousel, pagination, card-pricing, page-title, input and live-feed-item, cause not traced. One more, share "Vertical centered (no alignment)", passes alignment: '' against enum ['start','end']; there is no way to express "no alignment" through that prop, so it needs a component decision and is deliberately not fixed here.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release
Edited by Rajab Natshah

Merge request reports

Loading
Loading