Skip to content
Snippets Groups Projects

Issue #3480830 by spryah, pdureau: Display local tasks as a button group

2 files
+ 9
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -16,12 +16,12 @@
* @ingroup themeable
*/
#}
{% set variant = is_active ? 'selected' : '' %}
{% set variant = is_active ? '' : 'tertiary' %}
{% if is_active %}
{% set attributes = attributes.setAttribute('aria-current', 'page') %}
{% endif %}
{{ pattern('tab', {
{{ pattern('button', {
attributes: attributes,
title: link['#title'],
label: link['#title'],
url: link['#url'].toString(),
}, variant) }}
Loading