diff --git a/web/themes/custom/opdavies/opdavies.theme b/web/themes/custom/opdavies/opdavies.theme index 57e2126..a58c767 100644 --- a/web/themes/custom/opdavies/opdavies.theme +++ b/web/themes/custom/opdavies/opdavies.theme @@ -25,10 +25,3 @@ function opdavies_preprocess_page(array &$variables): void { $variables['#attached']['library'][] = 'opdavies/twitter'; } } - -/** - * Implements hook_preprocess_HOOK(). - */ -function opdavies_preprocess_menu_local_task(array &$variables): void { - $variables['link']['#options']['attributes']['class'][] = 'block px-5 py-2'; -} diff --git a/web/themes/custom/opdavies/templates/menu/menu-local-task.html.twig b/web/themes/custom/opdavies/templates/menu/menu-local-task.html.twig deleted file mode 100644 index 11d1f0c..0000000 --- a/web/themes/custom/opdavies/templates/menu/menu-local-task.html.twig +++ /dev/null @@ -1,23 +0,0 @@ -{# -/** - * @file - * Theme override for a local task link. - * - * Available variables: - * - attributes: HTML attributes for the wrapper element. - * - is_active: Whether the task item is an active tab. - * - link: A rendered link element. - * - * Note: This template renders the content for each task item in - * menu-local-tasks.html.twig. - * - * @see template_preprocess_menu_local_task() - */ -#} -{% set linkClasses = [ - 'mt-3 ml-3 border border-gray-200', - is_active ? 'underline bg-gray-100' : 'bg-white', -] %} -