3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Set the text color of map control buttons to match the SVG path fill color.

This commit is contained in:
paul121 2021-04-01 17:29:10 -07:00 committed by Michael Stenta
parent 2c5a38dc6f
commit e7978e89e8
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,4 @@
/* Set text color of map control buttons to match SVG color. */
.farm-map .ol-control button {
color: var(--colorGinPrimary);
}

View file

@ -10,3 +10,7 @@ flag:
css:
theme:
css/flag.css: {}
map:
css:
theme:
css/map.css: {}

View file

@ -7,6 +7,15 @@
use Drupal\Core\Block\BlockPluginInterface;
/**
* Implements hook_element_info_alter().
*/
function farm_ui_theme_element_info_alter(array &$info) {
if (isset($info['farm_map'])) {
$info['farm_map']['#attached']['library'][] = 'farm_ui_theme/map';
}
}
/**
* Implements hook_preprocess_HOOK().
*/