Buttons in hero section on landing pages do only work if you click on the text. If you click the button outside, nothing happens. The classes "btn btn-lg" are added to a surrounding DIV not the anchor tag.

To solve the issue remove the classes "btn btn-lg" from the div in paragraph--button--default.html.twig

But now the classes need to be added to the anchor tag.

There are several options:
Use:
https://www.drupal.org/project/link_class or
https://www.drupal.org/project/link_attributes

or write your own Fieldformatter for Links inside the social_landing_page module.

Any suggestions or ideas what the prefered way could be?

Comments

slowflyer created an issue. See original summary.

slowflyer’s picture

Pull request and more explanation here:
https://github.com/goalgorilla/open_social/pull/1033

bramtenhove’s picture

Status: Active » Fixed

Thanks a lot slowflyer! It landed in 3.1

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.