OEL-1919: Fix broken styling for facetapi.
Created by: drishu
Merge request reports
Activity
7 7 // Component 8 8 // ----------------------------------------------------------------------------- 9 9 @import "components/my.component"; 65 ], 66 ], 67 ])->save(); 68 69 $block = $this->placeBlock('facets_summary_block:owl', ['region' => 'content']); 70 $this->drupalGet('search-api-test-fulltext'); 71 72 $assert = $this->assertSession(); 73 $assert->elementTextContains('css', 'main h4', $block->label()); 74 $assert->elementTextContains('css', 'span.source-summary-count', '(5)'); 75 } 76 77 /** 78 * Tests facets block rendering. 79 */ 80 public function testFacetBlock(): void { 1 {# 2 /** 3 * @file 4 * Override facets item lists, alter title, inject classes. 5 */ 6 #} 7 <div class="facets-widget- {{- facet.widget.type -}} "> 8 {% if facet.widget.type -%} 9 {%- set attributes = attributes.addClass('item-list__' ~ facet.widget.type) %} 10 {%- endif %} 11 {% if facet.widget.type == 'dropdown' -%} 12 {%- set attributes = attributes.addClass('form-select') %} 13 {%- endif %} 1 .facets-widget-checkbox .item-list__checkbox, 2 .facets-widget-links .item-list__links, 3 .facets-widget-date_range .item-list__date_range {
Please register or sign in to reply