CSS for facet labels

This commit is contained in:
Naomi 2018-09-06 19:33:47 +01:00
parent 393ce2501c
commit 20b3ff0cd4
4 changed files with 19 additions and 1 deletions

View File

@ -16,7 +16,7 @@ provider: null
plugin: 'facet_block:created' plugin: 'facet_block:created'
settings: settings:
id: 'facet_block:created' id: 'facet_block:created'
label: '' label: 'Created Date'
provider: facets provider: facets
label_display: visible label_display: visible
block_id: facet_created block_id: facet_created

View File

@ -0,0 +1,4 @@
.facet-item label {
display: inline;
padding-left: 5px;
}

View File

@ -0,0 +1,5 @@
opencase-reporting-lib:
version: 1.x
css:
theme:
css/opencase-reporting.css: {}

View File

@ -23,6 +23,15 @@ function opencase_reporting_help($route_name, RouteMatchInterface $route_match)
} }
} }
/**
* Implements hook_page_attachments
*
* Add the opencase library to every page
*/
function opencase_reporting_page_attachments(array &$page) {
$page['#attached']['library'][] = 'opencase_reporting/opencase-reporting-lib';
}
/** /**
* Implements hook_uninstall(). * Implements hook_uninstall().
* Removes configs. * Removes configs.