diff --git a/modules/oe_theme_content_event/src/Plugin/ExtraField/Display/DetailsExtraField.php b/modules/oe_theme_content_event/src/Plugin/ExtraField/Display/DetailsExtraField.php index 70a02ac5f9..fac8b8b85d 100755 --- a/modules/oe_theme_content_event/src/Plugin/ExtraField/Display/DetailsExtraField.php +++ b/modules/oe_theme_content_event/src/Plugin/ExtraField/Display/DetailsExtraField.php @@ -98,12 +98,12 @@ public function viewElements(ContentEntityInterface $entity) { 'items' => [ [ 'icon' => 'file', - 'size' => 's', + 'size' => 'xs', 'text' => $this->getRenderableSubject($entity), ], [ 'icon' => 'calendar', - 'size' => 's', + 'size' => 'xs', 'text' => $this->getRenderableDates($entity), ], ], @@ -166,7 +166,7 @@ protected function addRenderableLocation(array &$build, ContentEntityInterface $ if ($entity->get('oe_event_online_only')->value) { $build['#fields']['items'][] = [ 'icon' => 'location', - 'size' => 's', + 'size' => 'xs', 'text' => [ '#markup' => $this->t('Online only'), ], @@ -178,7 +178,7 @@ protected function addRenderableLocation(array &$build, ContentEntityInterface $ if (!empty($address)) { $build['#fields']['items'][] = [ 'icon' => 'location', - 'size' => 's', + 'size' => 'xs', 'text' => [ '#markup' => $address, ], @@ -236,7 +236,7 @@ protected function addRenderableOnlineType(array &$build, ContentEntityInterface $build['#fields']['items'][] = [ 'icon' => 'livestreaming', 'text' => $this->t('Live streaming available'), - 'size' => 's', + 'size' => 'xs', ]; } } diff --git a/tests/src/Functional/ContentEventRenderTest.php b/tests/src/Functional/ContentEventRenderTest.php index b1fdfa8643..44009881c7 100644 --- a/tests/src/Functional/ContentEventRenderTest.php +++ b/tests/src/Functional/ContentEventRenderTest.php @@ -225,11 +225,11 @@ public function testEventRendering(): void { [ 'icon' => 'file', 'text' => 'Financing', - 'size' => 's', + 'size' => 'xs', ], [ 'icon' => 'calendar', 'text' => '28 February 2020, 01:00', - 'size' => 's', + 'size' => 'xs', ], ], ]; @@ -273,11 +273,11 @@ public function testEventRendering(): void { [ 'icon' => 'file', 'text' => 'Financing', - 'size' => 's', + 'size' => 'xs', ], [ 'icon' => 'calendar', 'text' => "28 February 2020, 01:00\n - 9 March 2020, 01:00", - 'size' => 's', + 'size' => 'xs', ], ], ]; @@ -332,7 +332,7 @@ public function testEventRendering(): void { $icons_text_expected_values['items'][2] = [ 'icon' => 'location', 'text' => ', Belgium', - 'size' => 's', + 'size' => 'xs', ]; $icons_text_assert->assertPattern($icons_text_expected_values, $details_list_content->getOuterHtml()); @@ -413,7 +413,7 @@ public function testEventRendering(): void { $icons_text_expected_values['items'][3] = [ 'icon' => 'livestreaming', 'text' => 'Live streaming available', - 'size' => 's', + 'size' => 'xs', ]; $icons_text_assert->assertPattern($icons_text_expected_values, $details_list_content->getOuterHtml()); @@ -678,15 +678,15 @@ public function testEventRendering(): void { [ 'icon' => 'file', 'text' => 'Financing', - 'size' => 's', + 'size' => 'xs', ], [ 'icon' => 'calendar', 'text' => "28 February 2020, 01:00\n - 9 March 2020, 01:00", - 'size' => 's', + 'size' => 'xs', ], [ 'icon' => 'livestreaming', 'text' => 'Live streaming available', - 'size' => 's', + 'size' => 'xs', ], ], ]; diff --git a/tests/src/Kernel/EventRenderTest.php b/tests/src/Kernel/EventRenderTest.php index 7ebf1f04b8..e55de14682 100644 --- a/tests/src/Kernel/EventRenderTest.php +++ b/tests/src/Kernel/EventRenderTest.php @@ -166,7 +166,7 @@ public function testEventTeaser(): void { [ 'icon' => 'location', 'text' => 'Belgium', - 'size' => 's', + 'size' => 'xs', ], ], ]), @@ -207,12 +207,12 @@ public function testEventTeaser(): void { [ 'icon' => 'location', 'text' => ', Belgium', - 'size' => 's', + 'size' => 'xs', ], [ 'icon' => 'livestreaming', 'text' => t('Live streaming available'), - 'size' => 's', + 'size' => 'xs', ], ], ]); @@ -228,12 +228,12 @@ public function testEventTeaser(): void { [ 'icon' => 'location', 'text' => 'Online only', - 'size' => 's', + 'size' => 'xs', ], [ 'icon' => 'livestreaming', 'text' => t('Live streaming available'), - 'size' => 's', + 'size' => 'xs', ], ], ]); @@ -285,12 +285,12 @@ public function testEventTeaser(): void { [ 'icon' => 'location', 'text' => ', Белгия', - 'size' => 's', + 'size' => 'xs', ], [ 'icon' => 'livestreaming', 'text' => t('Live streaming available'), - 'size' => 's', + 'size' => 'xs', ], ], ]); diff --git a/tests/src/Kernel/fixtures/rendering.yml b/tests/src/Kernel/fixtures/rendering.yml index e1f2166114..cbfdd14f84 100644 --- a/tests/src/Kernel/fixtures/rendering.yml +++ b/tests/src/Kernel/fixtures/rendering.yml @@ -2677,7 +2677,7 @@ text: "Brussels, Belgium" - icon: "livestreaming" - size: "s" + size: "xs" text: "Live streaming available" assertions: count: @@ -2688,7 +2688,7 @@ 'ul li.ecl-unordered-list__item:nth-child(1)': 'Culture | Innovation' 'ul li.ecl-unordered-list__item:nth-child(2)': '15-16 November 2019, 08:00 AM' 'ul li.ecl-unordered-list__item:nth-child(3)': 'Brussels, Belgium' - 'ul li.ecl-unordered-list__item:nth-child(4)': 'Live streaming available' + 'ul li.ecl-unordered-list__item:nth-child(4)': 'Live streaming available' - array: '#type': pattern '#id': icons_with_text