From d67c225ac4fd5522320fb619754dad003a79ef01 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Fri, 4 Jun 2021 21:30:08 +0100
Subject: [PATCH] Remove local menu link styling

---
 web/themes/custom/opdavies/opdavies.theme     |  7 ------
 .../templates/menu/menu-local-task.html.twig  | 23 -------------------
 .../templates/menu/menu-local-tasks.html.twig |  2 +-
 3 files changed, 1 insertion(+), 31 deletions(-)
 delete mode 100644 web/themes/custom/opdavies/templates/menu/menu-local-task.html.twig

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',
-] %}
-<li{{ attributes.addClass(linkClasses) }}>
-  {{ link }}
-</li>
diff --git a/web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig b/web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig
index a2061ab..8b2528c 100644
--- a/web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig
+++ b/web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig
@@ -11,7 +11,7 @@
  * themed in menu-local-task.html.twig.
  */
 #}
-{% set listClasses = '-mt-3 -ml-3 flex' %}
+{% set listClasses = 'list-disc list-inside' %}
 
 {% if primary %}
   <h2 class="visually-hidden">{{ 'Primary tabs'|t }}</h2>