From dfca58c47251cd14a5f72ff237015cd860691edd Mon Sep 17 00:00:00 2001
From: Konstantinos Platis <konstantinos.platis@cern.ch>
Date: Wed, 3 Jun 2020 10:33:21 +0000
Subject: [PATCH] Fixed Related Card component not receiving correct colors
 when used in Landing Pages

---
 CHANGELOG.md                                           | 4 ++++
 cern_components.info.yml                               | 2 +-
 patterns/molecules/related-card/related-card.html.twig | 2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb97489c..abb5b27f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
+## [2.7.2]
+
+- Fixed Related Card component not receiving correct colors when used in Landing Pages
+
 ## [2.7.1] - 25/05/2020
 
 - Fixed box link for both link and title pattern fields
diff --git a/cern_components.info.yml b/cern_components.info.yml
index 459f44a3..5dd5e33a 100755
--- a/cern_components.info.yml
+++ b/cern_components.info.yml
@@ -2,7 +2,7 @@ name: "CERN Components"
 type: module
 description: "Provides all the necessary modules regarding CERN Web Components."
 core: 8.x
-version: 2.7.1
+version: 2.7.2
 package: CERN Components
 dependencies:
   - components:components (>=8.x-1.1-alpha1)
diff --git a/patterns/molecules/related-card/related-card.html.twig b/patterns/molecules/related-card/related-card.html.twig
index 8f3a51bf..32fcc432 100755
--- a/patterns/molecules/related-card/related-card.html.twig
+++ b/patterns/molecules/related-card/related-card.html.twig
@@ -29,7 +29,7 @@
 {% endif %}
 
 
-<div {{ attributes }}>
+<div {{ attributes }} {{ attributes_bgcolor }}>
   {# Adds link to wrap the box #}
 
   {% if background | render %}
-- 
GitLab