expand_click_target
prop, the text link must be placed into a container that is not positioned static (e.g. absolute, fixed, relative, or sticky), and the text must explain clearly the block of content that it’s trying to cover.// Wrap this text link with a container that is not positioned static.
{% include '@bolt-elements-text-link/text-link.twig' with {
content: 'This is a block text link, its click target will cover the entire area of its closest container that is not positioned static.',
expand_click_target: true,
attributes: {
href: 'https://pega.com',
}
} only %}
// Wrap this text link with a container that is not positioned static.
<a href="https://pega.com" class="e-bolt-text-link e-bolt-text-link--expand-click-target">This is a block text link, its click target will cover the entire area of its closest container that is not positioned static.</a>