Remove local menu link styling
This commit is contained in:
parent
43b665a19e
commit
d67c225ac4
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue