fix: #3615208 Show a description on the Where We Work country cards

Summary

The "Where We Work" country cards (home page and each country's own "See Other Countries" section) rendered only the country name. The card component (sdc.vartheme_bs5_horizonaid.card-country) already ships fully-built hover-reveal CSS/JS for a short intro line, but nothing was ever bound into the card's content slot to reveal.

Fix

config/canvas.content_template.node.country.card.yml: added a second component to the content slot — sdc.vartheme_bs5_horizonaid.text, bound to the Country node's field_description, with text_color: text-white so it reads against the card's dark footer. Added field.field.node.country.field_description back to the config's dependencies.config list. Matches the binding already used for this same field on canvas.content_template.node.country.full.yml.

Only file changed: config/canvas.content_template.node.country.card.yml.

Testing

Reinstalled fresh via the browser installer's site-template picker (Varbase 11.0.x + Horizon Aid). Verified with the Playwright MCP: the description now renders in the DOM, hidden by default and revealed on hover/focus, for every country.

Closes #3615208 (https://www.drupal.org/project/horizonaid/issues/3615208)

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