Add gin-layer-wrapper class to comment fields.

This commit is contained in:
Michael Stenta 2024-02-13 12:08:08 -05:00
parent 20729c5389
commit be44ea9a73
1 changed files with 9 additions and 0 deletions

View File

@ -189,6 +189,15 @@ function farm_ui_theme_preprocess_block(&$variables) {
}
}
/**
* Implements hook_preprocess_HOOK().
*/
function farm_ui_theme_preprocess_field(&$variables) {
if ($variables['field_type'] == 'comment') {
$variables['attributes']['class'][] = 'gin-layer-wrapper';
}
}
/**
* Implements hook_preprocess_HOOK().
*/