Add tab styling

References #341
This commit is contained in:
Oliver Davies 2021-01-10 21:48:09 +00:00
parent 654d0f65f7
commit b2641662d2

View file

@ -14,4 +14,10 @@
* @see template_preprocess_menu_local_task() * @see template_preprocess_menu_local_task()
*/ */
#} #}
<li{{ attributes }}>{{ link }}</li> {% set linkClasses = [
'mt-3 ml-3 px-4 py-2 block border border-gray-200',
is_active ? 'underline bg-gray-100' : 'bg-white',
] %}
<li{{ attributes.addClass(linkClasses) }}>
{{ link }}
</li>