Skip to content

Commit

Permalink
EWPP-3814: Add extra attributes support for accessibility and other l…
Browse files Browse the repository at this point in the history
…inks in footer.
  • Loading branch information
sergepavle committed Mar 4, 2024
1 parent 3773a74 commit a3fa6e9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ public function eclFooterLinks(array $context, array $links): array {
'icon_position' => 'after',
'inverted' => $context['ecl_component_library'] == 'ec',
],
'extra_attributes' => $link['extra_attributes'] ?? [],
];

if (!empty($link['external']) && $link['external'] === TRUE) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@
external: accessibility_link|is_external_url,
icon_path: ecl_icon_path,
inverted: ecl_component_library == 'ec',
}
},
extra_attributes: [
{
name: 'data-is-accessibility-link',
value: 'true',
}
],
}
} %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
path: accessibility_link,
external: accessibility_link|is_external_url,
icon_path: ecl_icon_path,
}
},
extra_attributes: [
{
name: 'data-is-accessibility-link',
value: 'true',
}
],
}
} %}
{% endif %}
Expand Down

0 comments on commit a3fa6e9

Please sign in to comment.